python-ethtool/disable-test_show_coalesce_eth-in-VM.patch
jzm369 0e12adaf0e enable test and disable test_show_coalesce_eth in VM
(cherry picked from commit 02d0f37634a94d76a7623c61f17d684afc89313c)
2021-03-05 19:15:03 +08:00

28 lines
1.1 KiB
Diff

From 868d740cd4033c87b1d00acd92eac231d98752a5 Mon Sep 17 00:00:00 2001
From: hexiujun <hexiujun1@huawei.com>
Date: Thu, 12 Mar 2020 16:15:22 +0800
Subject: [PATCH] disable test_show_coalesce_eth in VM
---
tests/test_scripts.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/tests/test_scripts.py b/tests/test_scripts.py
index 6db3aac..1d91203 100755
--- a/tests/test_scripts.py
+++ b/tests/test_scripts.py
@@ -108,9 +108,7 @@ generic receive offload: on
for expected_start, line in zip(expected_lines_start, lines):
self.assertTrue(line.startswith(expected_start))
- @unittest.skipIf('TRAVIS' in os.environ and os.environ['TRAVIS'] == 'true',
- 'Skipping this test on Travis CI because show '
- 'coalesce is not supported on ethernet device in VM.')
+ @unittest.skip('show coalesce is not supported on ethernet device in VM.')
def test_show_coalesce_eth(self):
self.assertIsNone(peth.show_coalesce(device))
expected_lines_start = ['Coalesce parameters for',
--
1.8.3.1