mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
swap for subprocess.call per @nsoranzo suggestion
This commit is contained in:
@@ -119,9 +119,8 @@ def _handle_script_integrity(path, config):
|
||||
sleep_amt = getattr(config, "check_job_script_integrity_sleep", DEFAULT_INTEGRITY_SLEEP)
|
||||
for i in range(count):
|
||||
try:
|
||||
proc = subprocess.Popen([path], env={"ABC_TEST_JOB_SCRIPT_INTEGRITY_XYZ": "1"})
|
||||
proc.wait()
|
||||
if proc.returncode == 42:
|
||||
returncode = subprocess.call([path], env={"ABC_TEST_JOB_SCRIPT_INTEGRITY_XYZ": "1"})
|
||||
if returncode == 42:
|
||||
script_integrity_verified = True
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user