From b926df4d236516f8d2f0bfea53ec73b2dca497c2 Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Jul 24 2019 20:18:12 +0000 Subject: gcc-gnat is not built in CentOS8 --- diff --git a/tests/p_gcc-gnat/0-install_gcc-gnat.sh b/tests/p_gcc-gnat/0-install_gcc-gnat.sh index c60a088..fa1919e 100755 --- a/tests/p_gcc-gnat/0-install_gcc-gnat.sh +++ b/tests/p_gcc-gnat/0-install_gcc-gnat.sh @@ -1,13 +1,13 @@ -#!/bin/bash +#!/bin/bash -x # Author: Pablo Greco # Install gcc-gnat t_Log "Running $0 - installing gcc-gnat." -# Install git -if [ $centos_ver -ge 7 ]; then +# Install gcc-gnat +if [ $centos_ver -eq 7 ]; then t_InstallPackage gcc-gnat else - t_Log "This test is skipped before CentOS7." + t_Log "This test is only valid in CentOS7." fi diff --git a/tests/p_gcc-gnat/test_gcc-gnat.sh b/tests/p_gcc-gnat/test_gcc-gnat.sh index f097c5f..3870a36 100755 --- a/tests/p_gcc-gnat/test_gcc-gnat.sh +++ b/tests/p_gcc-gnat/test_gcc-gnat.sh @@ -3,7 +3,7 @@ t_Log "Running $0 - gcc-gnat can build a hello.adb" -if [ "$centos_ver" -lt 7 ] ; then +if [ "$centos_ver" -ne 7 ] ; then t_Log "CentOS $centos_ver -> SKIP" exit 0 fi