[tor-commits] [ooni-probe/master] Set testName from class

isis at torproject.org isis at torproject.org
Sun Mar 10 01:57:02 UTC 2013


commit b6f9c2284dee35981863652f6886c64b9b6b2885
Author: aagbsn <aagbsn at extc.org>
Date:   Fri Jan 25 19:44:45 2013 +0000

    Set testName from class
---
 ooni/nettest.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ooni/nettest.py b/ooni/nettest.py
index 0868ab8..bd019cc 100644
--- a/ooni/nettest.py
+++ b/ooni/nettest.py
@@ -145,7 +145,7 @@ class NetTestLoader(object):
 
         test_class, _ = test_cases[0]
         self.testVersion = test_class.version
-        self.testName = os.path.basename(net_test_file).strip('.py')
+        self.testName = test_class.name.lower().replace(' ','_')
         return test_cases
 
     def checkOptions(self):





More information about the tor-commits mailing list