Don't write to dbFile if there are no entries for the db

Change-Id: I5ecf805499d48f495a90466fd269a5b8accf4ba6
diff --git a/TestON/tests/USECASE/SegmentRouting/SRStaging/dependencies/SRStagingTest.py b/TestON/tests/USECASE/SegmentRouting/SRStaging/dependencies/SRStagingTest.py
index 7b87198..a3ab6ba 100644
--- a/TestON/tests/USECASE/SegmentRouting/SRStaging/dependencies/SRStagingTest.py
+++ b/TestON/tests/USECASE/SegmentRouting/SRStaging/dependencies/SRStagingTest.py
@@ -1329,6 +1329,8 @@
                           print in alphabetical order
         """
         try:
+            if not main.downtimeResults:
+                return main.TRUE
             dbFileName = "%s/%s" % ( main.logdir, filename )
             with open( dbFileName, "w+" ) as dbfile:
                 header = []