From 61376eefd7d3d39883cd38deee9d4cda63576542 Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Tue, 16 Aug 2022 22:18:49 -0300 Subject: [PATCH] build: fix TestVersionFile case in test-ns3.py --- utils/tests/test-ns3.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/utils/tests/test-ns3.py b/utils/tests/test-ns3.py index b9e8ea804..540e946b1 100644 --- a/utils/tests/test-ns3.py +++ b/utils/tests/test-ns3.py @@ -1519,15 +1519,21 @@ class NS3BuildBaseTestCase(NS3BaseTestCase): # move file back. shutil.move(attribute_cc_bak_path, attribute_cc_path) - # build should work again. + # Build should work again. return_code, stdout, stderr = run_ns3("build") self.assertEqual(return_code, 0) + # Reset flag to let it clean the build + NS3BuildBaseTestCase.cleaned_once = False + def test_06_TestVersionFile(self): """! Test if changing the version file affects the library names @return None """ + run_ns3("build") + self.ns3_libraries = get_libraries_list() + version_file = os.sep.join([ns3_path, "VERSION"]) with open(version_file, "w") as f: f.write("3-00\n")