[infra] Run recipe and python unittests unbuffered

Should help to prevent missing log output.

Change-Id: I1f82f6e5792aaadec03b4b2e5e87e599332f37e4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/277603
Reviewed-by: Ravi Mistry <rmistry@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
This commit is contained in:
Eric Boren 2020-03-18 11:09:22 -04:00 committed by Skia Commit-Bot
parent 00ba5ef4a6
commit 6b24312674

View File

@ -29,13 +29,14 @@ def python_unit_tests(train):
if train:
return None
return test(
['python', '-m', 'unittest', 'discover', '-s', '.', '-p', '*_test.py'],
['python', '-u', '-m', 'unittest', 'discover', '-s', '.', '-p',
'*_test.py'],
INFRA_BOTS_DIR)
def recipe_test(train):
cmd = [
'python', os.path.join(INFRA_BOTS_DIR, 'recipes.py'), 'test']
'python', '-u', os.path.join(INFRA_BOTS_DIR, 'recipes.py'), 'test']
if train:
cmd.append('train')
else: