summaryrefslogtreecommitdiff
path: root/test.py
blob: 168ebb9bdcba7ecc7669260c78f337d0511214d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /usr/bin/python3

from framework.threading import processQueue
from framework.process import runProgram

def process(item):
    out, err, retval, finished = runProgram(item, 2.5)
    if finished:
        print("success", err)
    else:
        print("expired")

def main():
    processQueue([['/home/kwg/Projects/piglit/bin/glsl-max-varyings', '-auto'] for i in range(3)], process)

if __name__ == "__main__":
    main()