From: Jun Wang Date: Wed, 2 Mar 2016 13:46:00 +0000 (+0800) Subject: fix run git command error with --no-log in CentOS 7 X-Git-Tag: submit/devel/20190730.074552~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=daaaaf8bfd3a9f4ea0717ad1809281cf427ac5df;p=tools%2Fitest-cases-gbs.git fix run git command error with --no-log in CentOS 7 Change-Id: I2cd0818b55020139b065d5d75736b24c15fe7112 --- diff --git a/cases/export/gbs_export_with_merge_commit_in_git-log.case b/cases/export/gbs_export_with_merge_commit_in_git-log.case index 66eccf1..3d3b1eb 100644 --- a/cases/export/gbs_export_with_merge_commit_in_git-log.case +++ b/cases/export/gbs_export_with_merge_commit_in_git-log.case @@ -30,7 +30,9 @@ git checkout master DIST=`python -c "import platform; print platform.dist()[0]"` -if [ $DIST = centos ] || ([ $DIST = SuSE ] && [ `python -c "import platform;print platform.dist()[1]"` = 12.1 ]);then +VERSION=`python -c "import platform;print platform.dist()[1]"` + +if ([ $DIST = centos ] && [ $VERSION < 7 ] ) || ([ $DIST = SuSE ] && [ $VERSION = 12.1 ]);then OPTION=--no-log else OPTION=--no-edit