teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0511-udev-test-remove-a-check-for-whether-the-test-is-run.patch

bd1529
From 1b133f2ca15f0a15b05407b2c04521d7de88dfa2 Mon Sep 17 00:00:00 2001
bd1529
From: Evgeny Vereshchagin <evvers@ya.ru>
bd1529
Date: Fri, 9 Nov 2018 03:14:04 +0100
bd1529
Subject: [PATCH] udev-test: remove a check for whether the test is run in a
bd1529
 container
bd1529
bd1529
It's too broad a check that prevents the test from running on Travis CI.
bd1529
bd1529
(cherry picked from commit 881886ef08d50951159633248b0f73977c5d6924)
bd1529
bd1529
Related: #1642728
bd1529
---
bd1529
 test/udev-test.pl | 7 -------
bd1529
 1 file changed, 7 deletions(-)
bd1529
bd1529
diff --git a/test/udev-test.pl b/test/udev-test.pl
bd1529
index 61bd3d703a..05b3e17188 100755
bd1529
--- a/test/udev-test.pl
bd1529
+++ b/test/udev-test.pl
bd1529
@@ -1646,13 +1646,6 @@ if ($? >> 8 == 0) {
bd1529
         exit($EXIT_TEST_SKIP);
bd1529
 }
bd1529
 
bd1529
-# skip the test when running in a container
bd1529
-system("systemd-detect-virt", "-c", "-q");
bd1529
-if ($? >> 8 == 0) {
bd1529
-        print "Running in a container, skipping the test.\n";
bd1529
-        exit($EXIT_TEST_SKIP);
bd1529
-}
bd1529
-
bd1529
 udev_setup();
bd1529
 
bd1529
 my $test_num = 1;