tests: qvm-sync-clock is asynchronouse, take it into account

这个提交包含在:
Marek Marczykowski-Górecki 2016-02-23 16:20:18 +01:00
父节点 3ece17a8cf
当前提交 0fb69d39ca
找不到此签名对应的密钥
GPG 密钥 ID: 063938BA42CFA724

查看文件

@ -690,6 +690,10 @@ class TC_00_AppVMMixin(qubes.tests.SystemTestsMixin):
self.assertEquals(retcode, 0,
"qvm-sync-clock failed with code {}".
format(retcode))
# qvm-sync-clock is asynchronous - it spawns qubes.SetDateTime
# service, send it timestamp value and exists without waiting for
# actual time set
time.sleep(1)
(vm_time, _) = self.testvm1.run("date -u +%s",
passio_popen=True).communicate()
self.assertAlmostEquals(int(vm_time), int(start_time), delta=30)