tests: fix qvm-move-to-vm error code checking
Currently error code is 28 (ENOSPC). But generally any non-zero is expected result here. Fix test for QubesOS/qubes-issues#1355
This commit is contained in:
parent
24ad20cfe6
commit
baffef0ef0
@ -634,7 +634,7 @@ class TC_00_AppVMMixin(qubes.tests.SystemTestsMixin):
|
||||
# Close GUI error message
|
||||
self.enter_keys_in_window('Error', ['Return'])
|
||||
p.wait()
|
||||
self.assertEqual(p.returncode, 255, "qvm-move-to-vm should fail")
|
||||
self.assertNotEqual(p.returncode, 0, "qvm-move-to-vm should fail")
|
||||
retcode = self.testvm1.run("test -f testfile", wait=True)
|
||||
self.assertEqual(retcode, 0, "testfile should not be deleted in "
|
||||
"source VM")
|
||||
|
Loading…
Reference in New Issue
Block a user