blob: 6e473e7c069da36c0956811f32b48893b6552e97 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# 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 report_tests.plugin_tests.networking import NetworkingPluginTest
class rhbz1928628(NetworkingPluginTest):
"""
Only collect an eeprom dump when requested, as otherwise this can cause
NIC flaps.
https://bugzilla.redhat.com/show_bug.cgi?id=1928628
:avocado: tags=stageone
"""
sos_cmd = '-o networking'
def test_eeprom_dump_not_collected(self):
self.assertFileGlobNotInArchive('sos_commands/networking/ethtool_-e*')
class rhbz1928628Enabled(NetworkingPluginTest):
"""
Enable the option to perform eeprom collection.
WARNING: it has been noted (via this rhbz) that certain NICs may pause
during this collection
:avocado: tags=stageone
"""
sos_cmd = '-o networking -k networking.eepromdump=on'
def test_eeprom_dump_collected(self):
self.assertFileGlobInArchive('sos_commands/networking/ethtool_-e*')
|