Don't show git commit for tests that use existing setups

Change-Id: I28385fe21b9b89578af2463cd3e1710c4cd6cea6
(cherry picked from commit b017dc20c086d4f7131c9d2b920d166cdae41c48)
diff --git a/TestON/tests/dependencies/ONOSSetup.py b/TestON/tests/dependencies/ONOSSetup.py
index dc1dea0..1afbfa9 100644
--- a/TestON/tests/dependencies/ONOSSetup.py
+++ b/TestON/tests/dependencies/ONOSSetup.py
@@ -139,7 +139,11 @@
             url = self.generateGraphURL()
         main.log.wiki( url )
 
-        main.commit = main.ONOSbench.getVersion( report=True )
+        if not main.persistentSetup:
+            # ONOS is not deployed by the test
+            # TODO: Try to get commit another way, maybe container labels?
+            #       Or try to link to deployment job?
+            main.commit = main.ONOSbench.getVersion( report=True )
 
     def generateGraphURL( self, testname=main.TEST, width=525, height=350 ):
         """