richardphibel / rpms / systemd

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