tools/test-queue-worker-reload: Avoid shelling out for touch.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2018-07-18 17:50:16 -04:00
committed by Tim Abbott
parent d3f8f74ac4
commit 19f37fb3d4

View File

@@ -86,7 +86,7 @@ if __name__ == '__main__':
logfile.seek(0)
print("Attempting to modify a file")
subprocess.call(['touch', 'zerver/lib/actions.py'])
os.utime('zerver/lib/actions.py')
failed = check_worker_launch(logfile_name)
run_dev.send_signal(signal.SIGINT)