diff options
Diffstat (limited to 'tests/report_tests')
-rw-r--r-- | tests/report_tests/plugin_tests/networking.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/report_tests/plugin_tests/networking.py b/tests/report_tests/plugin_tests/networking.py index f6cfa2d8..4ae80a41 100644 --- a/tests/report_tests/plugin_tests/networking.py +++ b/tests/report_tests/plugin_tests/networking.py @@ -6,6 +6,7 @@ # # See the LICENSE file in the source distribution for further information. +import os from sos_tests import StageOneReportTest @@ -29,3 +30,9 @@ class NetworkingPluginTest(StageOneReportTest): def test_forbidden_globs_skipped(self): self.assertFileGlobNotInArchive('/proc/net/rpc/*/channel') self.assertFileGlobNotInArchive('/proc/net/rpc/*/flush') + + def test_netdevs_properly_iterated(self): + for dev in os.listdir('/sys/class/net'): + self.assertFileGlobInArchive( + "sos_commands/networking/ethtool_*_%s" % dev + ) |