richardphibel / rpms / systemd

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