diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-09-22 20:49:15 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-09-30 17:19:06 +0200 |
| commit | 2c521f1356378904e3d3a744960de68e8c5b62dc (patch) | |
| tree | 29de6d1a4db53a19777a350f83fc1ca13234bd25 /smoketest/scripts/cli/test_interfaces_loopback.py | |
| parent | 5845c4b1c50bc0335284cfb3306e0a91de3efd40 (diff) | |
| download | vyos-1x-2c521f1356378904e3d3a744960de68e8c5b62dc.tar.gz vyos-1x-2c521f1356378904e3d3a744960de68e8c5b62dc.zip | |
smoketest: T7858: make failfast main argument dynamic
When smoketest debugging is enabled (by creating the file
/tmp/vyos.smoketest.debug), all available smoketests will fail fast instead
of running to completion. This helps reduce test time when something is
broken or undergoing refactoring, as it avoids waiting for the full test suite
to finish.
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_loopback.py')
| -rwxr-xr-x | smoketest/scripts/cli/test_interfaces_loopback.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_loopback.py b/smoketest/scripts/cli/test_interfaces_loopback.py index 290cda64b..df498334e 100755 --- a/smoketest/scripts/cli/test_interfaces_loopback.py +++ b/smoketest/scripts/cli/test_interfaces_loopback.py @@ -19,6 +19,7 @@ import unittest from base_interfaces_test import BasicInterfaceTest from base_interfaces_test import MSG_TESTCASE_UNSUPPORTED from netifaces import interfaces +from base_vyostest_shim import VyOSUnitTestSHIM from vyos.utils.network import is_intf_addr_assigned @@ -57,4 +58,4 @@ class LoopbackInterfaceTest(BasicInterfaceTest.TestCase): self.skipTest(MSG_TESTCASE_UNSUPPORTED) if __name__ == '__main__': - unittest.main(verbosity=2) + unittest.main(verbosity=2, failfast=VyOSUnitTestSHIM.TestCase.debug_on()) |
