|
|
55fc26 |
From c48f2594f2cca37bc1335d354961202db7baee17 Mon Sep 17 00:00:00 2001
|
|
|
55fc26 |
From: Vratislav Podzimek <vpodzime@redhat.com>
|
|
|
55fc26 |
Date: Fri, 24 Nov 2017 15:16:25 +0100
|
|
|
55fc26 |
Subject: [PATCH] Do not skip integration tests on CentOS/RHEL
|
|
|
55fc26 |
|
|
|
55fc26 |
The scsi_debug module doesn't seem to be causing kernel panics
|
|
|
55fc26 |
anymore.
|
|
|
55fc26 |
|
|
|
55fc26 |
Resolves: rhbz#1511974
|
|
|
55fc26 |
---
|
|
|
55fc26 |
src/tests/integration-test | 17 -----------------
|
|
|
55fc26 |
1 file changed, 17 deletions(-)
|
|
|
55fc26 |
|
|
|
55fc26 |
diff --git a/src/tests/integration-test b/src/tests/integration-test
|
|
|
55fc26 |
index 44ddec5..f863578 100755
|
|
|
55fc26 |
--- a/src/tests/integration-test
|
|
|
55fc26 |
+++ b/src/tests/integration-test
|
|
|
55fc26 |
@@ -1744,17 +1744,6 @@ class MDRaid(UDisksTestCase):
|
|
|
55fc26 |
# ----------------------------------------------------------------------------
|
|
|
55fc26 |
|
|
|
55fc26 |
|
|
|
55fc26 |
-def get_distro_version():
|
|
|
55fc26 |
- # 3rd to 6th fields from e.g. "CPE OS Name: cpe:/o:fedoraproject:fedora:27" or "CPE OS Name: cpe:/o:centos:centos:7"
|
|
|
55fc26 |
- out = subprocess.check_output('hostnamectl status | grep "CPE OS Name"', shell=True).decode().strip()
|
|
|
55fc26 |
- try:
|
|
|
55fc26 |
- _project, distro, version = tuple(out.split(":")[3:6])
|
|
|
55fc26 |
- except ValueError:
|
|
|
55fc26 |
- print('Failed to get distribution and version from "%s". Aborting.' % out)
|
|
|
55fc26 |
- sys.exit(1)
|
|
|
55fc26 |
-
|
|
|
55fc26 |
- return (distro, version)
|
|
|
55fc26 |
-
|
|
|
55fc26 |
if __name__ == '__main__':
|
|
|
55fc26 |
argparser = argparse.ArgumentParser(description='udisks2 integration test suite')
|
|
|
55fc26 |
argparser.add_argument('-l', '--log-file', dest='logfile',
|
|
|
55fc26 |
@@ -1763,12 +1752,6 @@ if __name__ == '__main__':
|
|
|
55fc26 |
help='name of test class or method (e. g. "Drive", "FS.test_ext2")')
|
|
|
55fc26 |
cli_args = argparser.parse_args()
|
|
|
55fc26 |
|
|
|
55fc26 |
- distro, version = get_distro_version()
|
|
|
55fc26 |
- if distro in ('centos', 'enterprise_linux'):
|
|
|
55fc26 |
- print('Skipping integration tests on "%s %s".'\
|
|
|
55fc26 |
- 'SCSI debug devices causing kernel panic.' % (distro, version))
|
|
|
55fc26 |
- sys.exit(0)
|
|
|
55fc26 |
-
|
|
|
55fc26 |
UDisksTestCase.init(logfile=cli_args.logfile)
|
|
|
55fc26 |
if cli_args.testname:
|
|
|
55fc26 |
tests = unittest.TestLoader().loadTestsFromNames(
|
|
|
55fc26 |
--
|
|
|
55fc26 |
1.8.3.1
|
|
|
55fc26 |
|