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:
Marek Marczykowski-Górecki 2016-01-07 02:20:07 +01:00
parent 24ad20cfe6
commit baffef0ef0
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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")