add postinstalls to custom partitioning tests
ClosedPublic

Authored by jsedlak on May 4 2017, 10:23 AM.

Details

Summary

During blivet test development, I have noticed that we
don't really check whether custom partitioning worked as expected
(we only check that installed system boots), so I've added poinstall
tests for all our custom partitioning tests and also set them as POSTINSTALL
for blivet tests.

Test Plan

Run custom partitioning and blivet tests and check that postinstall
test are added and that they pass.

Diff Detail

Repository
rOPENQATESTS os-autoinst-distri-fedora
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
jsedlak created this revision.May 4 2017, 10:23 AM
adamwill requested changes to this revision.May 4 2017, 7:59 PM

Thanks a lot for doing this! I've had it on my todo list approximately forever, but never got around to it.

As a general note, I try to avoid using validate_script_output as much as possible because it involves a lot of console typing and increases the likelihood of a typing fail. I prefer instead to use assert_script_run and set up the actual grep command that's run inside the VM so it'll produce the appropriate result; that executes faster and is less prone to error. Can you try rewriting this that way, if you don't mind?

This revision now requires changes to proceed.May 4 2017, 7:59 PM
jsedlak updated this revision to Diff 3029.May 5 2017, 1:27 PM

use assert_script_run

adamwill accepted this revision.May 5 2017, 4:33 PM

Looks good!

This revision is now accepted and ready to land.May 5 2017, 4:33 PM
This revision was automatically updated to reflect the committed changes.