From a17f9bc37bfc9793934f639f53334ba3274d5b71 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Apr 19 2018 08:33:00 +0000 Subject: added exported variable '' that can be used everywhere in the scripts --- diff --git a/tests/0_lib/functions.sh b/tests/0_lib/functions.sh index ff87c62..ed6a3a8 100755 --- a/tests/0_lib/functions.sh +++ b/tests/0_lib/functions.sh @@ -114,6 +114,9 @@ function t_GetArch rpm -q --queryformat '%{arch}\n' centos-release } +# Set the arch +arch=$(t_GetArch) + function t_CheckForPort { while true @@ -154,3 +157,4 @@ export -f t_CheckForPort export -f t_Assert export -f t_Assert_Equals export centos_ver +export arch