Fix test case assertions.
This commit is contained in:
parent
08313c53e2
commit
9ddb6340d9
1 changed files with 4 additions and 4 deletions
|
|
@ -77,7 +77,7 @@ forEachUbuntuImage
|
||||||
node1.succeed("rm /etc/foo_test")
|
node1.succeed("rm /etc/foo_test")
|
||||||
|
|
||||||
node1.succeed("/system-manager-profile/bin/activate 2>&1 | tee /tmp/output.log")
|
node1.succeed("/system-manager-profile/bin/activate 2>&1 | tee /tmp/output.log")
|
||||||
node1.succeed("grep -vF 'ERROR' /tmp/output.log")
|
node1.succeed("! grep -F 'ERROR' /tmp/output.log")
|
||||||
node1.wait_for_unit("system-manager.target")
|
node1.wait_for_unit("system-manager.target")
|
||||||
|
|
||||||
node1.succeed("systemctl status service-9.service")
|
node1.succeed("systemctl status service-9.service")
|
||||||
|
|
@ -88,7 +88,7 @@ forEachUbuntuImage
|
||||||
node1.fail("grep -F 'launch_the_rockets = false' /etc/foo.conf")
|
node1.fail("grep -F 'launch_the_rockets = false' /etc/foo.conf")
|
||||||
|
|
||||||
node1.succeed("${newConfig}/bin/activate 2>&1 | tee /tmp/output.log")
|
node1.succeed("${newConfig}/bin/activate 2>&1 | tee /tmp/output.log")
|
||||||
node1.succeed("grep -vF 'ERROR' /tmp/output.log")
|
node1.succeed("! grep -F 'ERROR' /tmp/output.log")
|
||||||
node1.succeed("systemctl status new-service.service")
|
node1.succeed("systemctl status new-service.service")
|
||||||
node1.fail("systemctl status service-9.service")
|
node1.fail("systemctl status service-9.service")
|
||||||
node1.fail("cat /etc/a/nested/example/foo3")
|
node1.fail("cat /etc/a/nested/example/foo3")
|
||||||
|
|
@ -154,7 +154,7 @@ forEachUbuntuImage
|
||||||
node1.wait_for_unit("default.target")
|
node1.wait_for_unit("default.target")
|
||||||
|
|
||||||
node1.succeed("/system-manager-profile/bin/prepopulate 2>&1 | tee /tmp/output.log")
|
node1.succeed("/system-manager-profile/bin/prepopulate 2>&1 | tee /tmp/output.log")
|
||||||
node1.succeed("grep -vF 'ERROR' /tmp/output.log")
|
node1.succeed("! grep -F 'ERROR' /tmp/output.log")
|
||||||
node1.systemctl("daemon-reload")
|
node1.systemctl("daemon-reload")
|
||||||
node1.systemctl("start default.target")
|
node1.systemctl("start default.target")
|
||||||
node1.wait_for_unit("system-manager.target")
|
node1.wait_for_unit("system-manager.target")
|
||||||
|
|
@ -167,7 +167,7 @@ forEachUbuntuImage
|
||||||
node1.fail("grep -F 'launch_the_rockets = false' /etc/foo.conf")
|
node1.fail("grep -F 'launch_the_rockets = false' /etc/foo.conf")
|
||||||
|
|
||||||
node1.succeed("${newConfig}/bin/activate 2>&1 | tee /tmp/output.log")
|
node1.succeed("${newConfig}/bin/activate 2>&1 | tee /tmp/output.log")
|
||||||
node1.succeed("grep -vF 'ERROR' /tmp/output.log")
|
node1.succeed("! grep -F 'ERROR' /tmp/output.log")
|
||||||
node1.succeed("systemctl status new-service.service")
|
node1.succeed("systemctl status new-service.service")
|
||||||
node1.fail("systemctl status service-9.service")
|
node1.fail("systemctl status service-9.service")
|
||||||
node1.fail("cat /etc/a/nested/example/foo3")
|
node1.fail("cat /etc/a/nested/example/foo3")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue