diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-02 05:18:07 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-02 05:18:07 +0200 |
commit | e16005089ce4af80b92d66ef017bcfdfba81fc4e (patch) | |
tree | efae7fb4fd55a6898f1317a495f3acd03eb32897 | |
parent | b47f72620fe547e53ff7ab1247509d07b586e39f (diff) | |
download | psutil-e16005089ce4af80b92d66ef017bcfdfba81fc4e.tar.gz |
make.bad: add test_script cmd to quickly run a script on the fly
-rwxr-xr-x | scripts/internal/winmake.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/internal/winmake.py b/scripts/internal/winmake.py index 7b70404a..82e99d96 100755 --- a/scripts/internal/winmake.py +++ b/scripts/internal/winmake.py @@ -380,6 +380,18 @@ def test_by_name(): @cmd +def test_script(): + """Quick way to test a script""" + try: + print(sys.argv) + name = sys.argv[2] + except IndexError: + sys.exit('second arg missing') + install() + sh("%s %s" % (PYTHON, name)) + + +@cmd def test_memleaks(): """Run memory leaks tests""" install() |