[tor-commits] [ooni-probe/master] Change how we compute the test ID

art at torproject.org art at torproject.org
Fri Jan 3 13:29:42 UTC 2014


commit 957a83347271db809341f9e341d79d3ebeb81e30
Author: Arturo Filastò <art at fuffa.org>
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,





More information about the tor-commits mailing list