From fb2c3c1db3c655c9a96442f6706017a4d0b48080 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 16 Jun 2017 11:26:43 -0400 Subject: [PATCH] tests: Fix previous commit for selinux testing I only checked the test passed, I didn't read the output closely, and made it succeed without testing anything. Fix the absolute/relative `/etc` references. Closes: #937 Approved by: jlebon --- tests/installed/itest-deploy-selinux.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/installed/itest-deploy-selinux.sh b/tests/installed/itest-deploy-selinux.sh index f4fccc6d..7c26aad0 100755 --- a/tests/installed/itest-deploy-selinux.sh +++ b/tests/installed/itest-deploy-selinux.sh @@ -12,9 +12,9 @@ ostree admin deploy --karg-proc-cmdline ${host_refspec} new_deployment_path=/ostree/deploy/${host_osname}/deploy/${host_commit}.1 # A set of files that have a variety of security contexts -for file in fstab passwd exports hostname sysctl.conf /etc/yum.repos.d \ - /etc/NetworkManager/dispatcher.d/hook-network-manager; do - if ! test -e ${file}; then +for file in fstab passwd exports hostname sysctl.conf yum.repos.d \ + NetworkManager/dispatcher.d/hook-network-manager; do + if ! test -e /etc/${file}; then continue fi