Resume: probe build completeness without the monitor return value
This commit is contained in:
parent
f8a7032841
commit
680125efd9
1 changed files with 3 additions and 2 deletions
|
|
@ -304,8 +304,9 @@ find {remote_root}/probes -type f -name '*.py' -exec sha256sum {{}} + >> {remote
|
|||
if not resume:
|
||||
return False
|
||||
probe = ('test -d ' + shlex.quote(builds[variant]) + '/output && test -d '
|
||||
+ shlex.quote(builds[variant]) + '/repo && echo built')
|
||||
return remote(probe).strip().endswith('built')
|
||||
+ shlex.quote(builds[variant]) + '/repo')
|
||||
return subprocess.run(['ssh', '-o', 'BatchMode=yes', '-o', 'ConnectTimeout=20', worker, probe],
|
||||
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL).returncode == 0
|
||||
|
||||
if not variant_done('core'):
|
||||
phase('building-core')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue