blob: bdf7c646021b41269cf22b2ed495a5d1063ffdaf [file] [log] [blame]
import sys
import time
import os
import _prep
from osmo_gsm_tester.util import FileLock, touch_file
testdir, name = sys.argv[1:]
stop_signalling_file = os.path.join(testdir, name)
assert os.path.isfile(stop_signalling_file)
lockfile_path = os.path.join(testdir, 'lock_test')
fl = FileLock(lockfile_path, name)
with fl:
while os.path.exists(stop_signalling_file):
time.sleep(.1)
touch_file(stop_signalling_file + '.done')
# vim: expandtab tabstop=4 shiftwidth=4