tests: Fix previous commit for selinux testing
authorColin Walters <walters@verbum.org>
Fri, 16 Jun 2017 15:26:43 +0000 (11:26 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 16 Jun 2017 15:46:07 +0000 (15:46 +0000)
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

index f4fccc6d37c4ceeb1e02f2ec87b1d9c916484164..7c26aad02ac26a58a88c309d0e458292b0cb9ac9 100755 (executable)
@@ -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