Don't print results if we're in test mode.
authorMark Cote <mcote@mozilla.com>
Wed, 31 Aug 2011 16:47:21 -0400
changeset 62 f88f4f92a8b46eafb5a0f8f5ad4fafeb89153018
parent 61 98df7e112516e20817ad5f4dbe80f5f346949c31
child 63 e916535c7763db054bdbc09c76d456a0279db73f
push id60
push usermcote@mozilla.com
push dateWed, 31 Aug 2011 20:47:17 +0000
Don't print results if we're in test mode.
client/speedtests.py
--- a/client/speedtests.py
+++ b/client/speedtests.py
@@ -622,19 +622,21 @@ def main():
             print 'Browser isn\'t running!'
             br.launch_next_browser()
         evt.wait(5)
     trs.shutdown()
     server_thread.join()
     end = datetime.datetime.now()
     print ''
     print 'Done!'
-    report = results.SpeedTestReport(trs.results)
-    print
-    print 'Start: %s' % start
-    print 'Duration: %s' % (end - start)
-    print 'Client: %s' % config.local_ip
-    print
-    print report.report()
+
+    if not config.testmode:
+        report = results.SpeedTestReport(trs.results)
+        print
+        print 'Start: %s' % start
+        print 'Duration: %s' % (end - start)
+        print 'Client: %s' % config.local_ip
+        print
+        print report.report()
 
 
 if __name__ == '__main__':
     main()