[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit b6f9c2284dee35981863652f6886c64b9b6b2885
Author: aagbsn <aagbsn@xxxxxxxx>
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):



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits