Created
February 28, 2016 02:45
-
-
Save Endle/4667c6c867a9c4981312 to your computer and use it in GitHub Desktop.
runner.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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