diff --git a/tests/0_lib/functions.sh b/tests/0_lib/functions.sh
index 6898171..beb2cd2 100755
--- a/tests/0_lib/functions.sh
+++ b/tests/0_lib/functions.sh
@@ -111,7 +111,7 @@ function t_GetPkgVer
 # Description: get the arch 
 function t_GetArch
 {
-	rpm -q --queryformat '%{arch}\n' centos-release
+	rpm -q $(rpm -qf /etc/redhat-release) --queryformat '%{arch}\n'
 }
 
 # Set the arch