From c2b87b8a6a28ed3daddb8d795d765c63b9059c25 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Mon, 3 Apr 2017 13:07:02 -0400 Subject: change logic to drop ./ or .\ from front of specified test/testpath so logic to match test or src will work properly. This is mainly just useful on windows when autocompleting paths --- runtest.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'runtest.py') diff --git a/runtest.py b/runtest.py index 75e9eb70..0d9bbafd 100755 --- a/runtest.py +++ b/runtest.py @@ -709,7 +709,13 @@ else: for tp in testpaths: # Clean up path so it can match startswith's below - tp = os.path.normpath(tp) + # sys.stderr.write("Changed:%s->"%tp) + # remove leading ./ or .\ + if tp[0] == '.' and tp[1] in (os.sep, os.altsep): + tp = tp[2:] + # tp = os.path.normpath(tp) + # sys.stderr.write('->%s<-'%tp) + # sys.stderr.write("to:%s\n"%tp) for path in glob.glob(tp): if os.path.isdir(path): if path.startswith('src'): -- cgit v1.2.1