[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Change how we compute the test ID
commit 957a83347271db809341f9e341d79d3ebeb81e30
Author: Arturo Filastò <art@xxxxxxxxx>
Date: Thu Dec 26 21:46:40 2013 +0100
Change how we compute the test ID
---
ooni/nettest.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ooni/nettest.py b/ooni/nettest.py
index b421252..7e1ef04 100644
--- a/ooni/nettest.py
+++ b/ooni/nettest.py
@@ -160,7 +160,7 @@ def getNetTestInformation(net_test_file):
"""
test_class = getTestClassFromFile(net_test_file)
- test_id = test_class_name_to_name(test_class.name)
+ test_id = os.path.basename(net_test_file).replace('.py', '')
information = {'id': test_id,
'name': test_class.name,
'description': test_class.description,
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits