Skip to content

Instantly share code, notes, and snippets.

@Endle
Created February 28, 2016 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Endle/4667c6c867a9c4981312 to your computer and use it in GitHub Desktop.
Save Endle/4667c6c867a9c4981312 to your computer and use it in GitHub Desktop.
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