[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [chutney/master] getTests() must not return the file extension
commit d0f15258d66fb61eb456ad30346f92a82d040c72
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
Date: Mon Jul 20 10:20:53 2020 -0400
getTests() must not return the file extension
Before this fix, "verify.py" was listed as the chutney tests and failed
to match against the "verify" command passed to chutney.
(Edited by Nick, to use pathlib instead of os.path)
---
lib/chutney/TorNet.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/chutney/TorNet.py b/lib/chutney/TorNet.py
index 2d219ac..bdb2c0b 100644
--- a/lib/chutney/TorNet.py
+++ b/lib/chutney/TorNet.py
@@ -2651,7 +2651,7 @@ def getTests():
chutney_path = get_absolute_chutney_path()
chutney_tests_path = chutney_path / "scripts" / "chutney_tests"
- return [test.name for test in chutney_tests_path.glob("*.py")
+ return [test.stem for test in chutney_tests_path.glob("*.py")
if not test.name.startswith("_")]
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits