summaryrefslogtreecommitdiff
path: root/scripts/internal
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-05-03 19:17:51 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2017-05-03 19:17:51 +0200
commitd1500241a4ebb860d59c56e091200e4777b36b00 (patch)
tree9062389ac2475c981786fd6c81d8887053d20cef /scripts/internal
parent5580428550896c66a9972682be0997035382d468 (diff)
downloadpsutil-d1500241a4ebb860d59c56e091200e4777b36b00.tar.gz
refactor tests
Diffstat (limited to 'scripts/internal')
-rwxr-xr-xscripts/internal/winmake.py7
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