Make test.py python3-compatible, print out command lines better.
This commit is contained in:
parent
de67c9feff
commit
fce077f191
1 changed files with 2 additions and 2 deletions
4
test.py
4
test.py
|
@ -40,7 +40,7 @@ class Command(object):
|
|||
def run(self, timeout):
|
||||
def target():
|
||||
self.process = subprocess.Popen(self.cmd, bufsize=1, stdin=subprocess.PIPE, stdout=sys.stdout, stderr=subprocess.STDOUT)
|
||||
self.process.stdin.write(self.data)
|
||||
self.process.stdin.write(self.data.encode('utf-8'))
|
||||
self.process.stdin.close()
|
||||
self.process.communicate()
|
||||
|
||||
|
@ -397,7 +397,7 @@ def run_tests(test_list, args):
|
|||
c = Command(cmdline, '\n'.join(test_filenames))
|
||||
c.run(TIMEOUT * len(test_filenames))
|
||||
|
||||
print("Ran " + PPSSPP_EXE)
|
||||
print("Ran " + ' '.join(cmdline))
|
||||
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue