diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-03 19:17:51 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-03 19:17:51 +0200 |
| commit | d1500241a4ebb860d59c56e091200e4777b36b00 (patch) | |
| tree | 9062389ac2475c981786fd6c81d8887053d20cef /scripts/internal | |
| parent | 5580428550896c66a9972682be0997035382d468 (diff) | |
| download | psutil-d1500241a4ebb860d59c56e091200e4777b36b00.tar.gz | |
refactor tests
Diffstat (limited to 'scripts/internal')
| -rwxr-xr-x | scripts/internal/winmake.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/internal/winmake.py b/scripts/internal/winmake.py index 69d4d972..b8d111a4 100755 --- a/scripts/internal/winmake.py +++ b/scripts/internal/winmake.py @@ -73,8 +73,9 @@ def safe_print(text, file=sys.stdout, flush=False): file.write("\n") -def sh(cmd): - safe_print("cmd: " + cmd) +def sh(cmd, nolog=False): + if not nolog: + safe_print("cmd: " + cmd) code = os.system(cmd) if code: raise SystemExit @@ -320,7 +321,7 @@ def flake8(): py_files = py_files.decode() py_files = [x for x in py_files.split() if x.endswith('.py')] py_files = ' '.join(py_files) - sh("%s -m flake8 %s" % (PYTHON, py_files)) + sh("%s -m flake8 %s" % (PYTHON, py_files), nolog=True) @cmd |
