def run_script(script, *args):
    s = os.path.join(os.path.dirname(__file__), ('../../scripts/' + script))
    command = [executable, s]
    command.extend(args)
    with Popen([executable, s]) as p:
        sleep(4)
        p.send_signal(SIGINT)
        p.wait(timeout=1)
        assert (p.poll() == 0), 'script failed'
def run_script(script, *args):
    s = os.path.join(os.path.dirname(__file__), ('../../scripts/' + script))
    command = [executable, s]
    command.extend(args)
    with Popen([executable, s]) as p:
        sleep(4)
        p.send_signal(SIGINT)
        p.wait(timeout=1)
        assert (p.poll() == 0), 'script failed'