From e9f6c2829c7ed81ff3ea56fcb34e45c7dfe8b0d3 Mon Sep 17 00:00:00 2001 From: Masami Ichikawa Date: Mar 14 2019 00:48:31 +0000 Subject: Enable rrdttool test on el7 This test skipped on el7, so enable it on el7. --- diff --git a/tests/p_rrdtool/0-install_rrdtool.sh b/tests/p_rrdtool/0-install_rrdtool.sh index 56b9e3d..3614363 100755 --- a/tests/p_rrdtool/0-install_rrdtool.sh +++ b/tests/p_rrdtool/0-install_rrdtool.sh @@ -2,7 +2,7 @@ # Author: Christoph Galuschka # Athmane Madjoudj -if (t_GetPkgRel basesystem | grep -q el6) +if [ $centos_ver -ge 6 ] then # Install rrdtool t_InstallPackage rrdtool diff --git a/tests/p_rrdtool/rrdtool_test.sh b/tests/p_rrdtool/rrdtool_test.sh index 83094cb..f04654d 100755 --- a/tests/p_rrdtool/rrdtool_test.sh +++ b/tests/p_rrdtool/rrdtool_test.sh @@ -3,7 +3,7 @@ # Author: Christoph Galuschka # RRD-sample from http://oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html -if (t_GetPkgRel basesystem | grep -q el6) +if [ $centos_ver -ge 6 ] then t_Log "Running $0 - rrdtool: create rrd, write values and retrieve values test."