Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
runner.py
#!/usr/bin/env python
from __future__ import print_function, unicode_literals
import sys, os
import subprocess
WINE_ROOT = "/home/lizhenbo/src/wine"
WINE_LOG = "/dev/shm/log"
fin = open(WINE_LOG, "w")
test_path = os.path.join(WINE_ROOT, "dlls/riched20/tests")
test_cmd = "cd " + test_path + " && make clean && make && make test"
print(test_cmd, file=fin)
proc = subprocess.Popen(
test_cmd,
shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
path = proc.communicate()
sys.exit(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment