From c086b3c0c17c14d538fbf85671107b6a2dfdc754 Mon Sep 17 00:00:00 2001 From: Michel Normand Date: Fri, 24 Feb 2017 12:58:43 -0500 Subject: [PATCH] rpcbind not same path for PowerPC A temporary patch on top of workaround RHBZ #1402427 (I do not have access to it) Signed-off-by: Michel Normand --- tests/_support_server.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/_support_server.pm b/tests/_support_server.pm index 2cd6fd19..60c88ec0 100644 --- a/tests/_support_server.pm +++ b/tests/_support_server.pm @@ -49,7 +49,9 @@ sub run { assert_script_run "firewall-cmd --add-service=nfs"; # workaround RHBZ #1402427: somehow the file is incorrectly labelled # even after a clean install with fixed selinux-policy - assert_script_run "restorecon /usr/bin/rpcbind"; + # Bypass: do not execute restorecon if file do not exist + # (for PowerPC rpcbind not in same path) + assert_script_run 'for xx in /usr/bin/rpcbind /sbin/rpcbind; do [ -f $xx ] && restorecon $xx; done'; # start the server assert_script_run "systemctl restart nfs-server.service"; assert_script_run "systemctl is-active nfs-server.service"; @@ -57,6 +59,7 @@ sub run { # report ready, wait for children mutex_create('support_ready'); wait_for_children; + # TODO we should add systematic data capture to help investigation when children failed. } sub test_flags {