diff options
Diffstat (limited to 'tests/test_data/fake_plugins/skip_versions.py')
-rw-r--r-- | tests/test_data/fake_plugins/skip_versions.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/test_data/fake_plugins/skip_versions.py b/tests/test_data/fake_plugins/skip_versions.py new file mode 100644 index 00000000..e8a1d533 --- /dev/null +++ b/tests/test_data/fake_plugins/skip_versions.py @@ -0,0 +1,24 @@ +# This file is part of the sos project: https://github.com/sosreport/sos +# +# This copyrighted material is made available to anyone wishing to use, +# modify, copy, or redistribute it subject to the terms and conditions of +# version 2 of the GNU General Public License. +# +# See the LICENSE file in the source distribution for further information. + +from sos.report.plugins import Plugin, IndependentPlugin + + +class SkipVersions(Plugin, IndependentPlugin): + """Collect the fake version files from the test suite, to ensure proper + skipping of version files + """ + + plugin_name = 'skip_versions' + short_desc = 'fake plugin to test skipping version files via the IP parser' + + def setup(self): + self.add_copy_spec([ + '/tmp/sos-test-version.txt', + '/tmp/sos-test-version-noskip' + ]) |