Skip to content

Commit 68dc796

Browse files
authored
Merge pull request #297 from xcp-ng/gln/fix-file-creation-test
fix file creation test
2 parents f334bd2 + 4d57269 commit 68dc796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def start_background_process(self, cmd: str) -> str:
313313
remote_cmd = f'nohup bash -c "{remote_cmd} &>/dev/null &"'
314314
self.ssh(remote_cmd, background=True)
315315

316-
wait_for(lambda: self.ssh_with_result(['test', '-f', pidfile]),
316+
wait_for(lambda: self.ssh_with_result(['test', '-f', pidfile]).returncode == 0,
317317
"wait for pid file %s to exist" % pidfile)
318318
pid = self.ssh(['cat', pidfile])
319319
self.ssh(['rm', '-f', script])

0 commit comments

Comments
 (0)