We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f334bd2 + 4d57269 commit 68dc796Copy full SHA for 68dc796
lib/vm.py
@@ -313,7 +313,7 @@ def start_background_process(self, cmd: str) -> str:
313
remote_cmd = f'nohup bash -c "{remote_cmd} &>/dev/null &"'
314
self.ssh(remote_cmd, background=True)
315
316
- wait_for(lambda: self.ssh_with_result(['test', '-f', pidfile]),
+ wait_for(lambda: self.ssh_with_result(['test', '-f', pidfile]).returncode == 0,
317
"wait for pid file %s to exist" % pidfile)
318
pid = self.ssh(['cat', pidfile])
319
self.ssh(['rm', '-f', script])
0 commit comments