From 8bcb19292387eabb9b8d8aef435b967c9203c275 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Jul 27 2019 15:39:19 +0000 Subject: Fixed the p_file test for c8 Signed-off-by: Fabian Arrotin --- diff --git a/tests/0_common/00_centos_repos.sh b/tests/0_common/00_centos_repos.sh index 8d59485..f51ea10 100755 --- a/tests/0_common/00_centos_repos.sh +++ b/tests/0_common/00_centos_repos.sh @@ -4,6 +4,6 @@ if [ "$centos_ver" -eq "8" ]; then t_Log "python not installed by default on .el8. SKIP" exit 0 else - python 000_centos_default_repos.py + python tests/0_common/000_centos_default_repos.py fi diff --git a/tests/p_file/01_file_mime_application.sh b/tests/p_file/01_file_mime_application.sh index 012582c..dbaa31a 100755 --- a/tests/p_file/01_file_mime_application.sh +++ b/tests/p_file/01_file_mime_application.sh @@ -4,6 +4,12 @@ t_Log "Running $0 - checking if file can recognize mime executable type " -file /bin/bash -i | grep -q "application/x-executable" +if [ "$centos_ver" -eq "8" ] ;then + string="application/x-sharedlib" +else + string="application/x-executable" +fi + +file /bin/bash -i | grep -q "${string}" t_CheckExitStatus $?