commit | 48b46b3cfcdce975ae8167bea8155a8a9ba1c6a1 | [log] [tgz] |
---|---|---|
author | Jon Hall <jhall@ciena.com> | Thu Sep 09 12:10:43 2021 -0700 |
committer | Jon Hall <jhall@ciena.com> | Thu Sep 09 12:10:43 2021 -0700 |
tree | c4679e978974155063547e91477b396458bff69c | |
parent | 8ed0a5302a27f21d06cceacfae7d810e2eb62c4f [diff] |
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 = []