From 756949556b3ceb2279f09962ab5789960de86bd3 Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Fri, 31 Oct 2014 09:26:28 +0100 Subject: Regression test portability: mock After some attempts at using mock on NetBSD which pulled a lot of dependencies, it seems that software really assumes the OS is Linux: chrooted build will fail because of missing Linux files. As a result, make tests/basic/rpm.t Linux-only, and remove mock and rpmbuild checks for non Linux systems. BUG: 1129939 Change-Id: Ica2eb74dd23fbec379a26051a8f61b0dfc07a115 Signed-off-by: Emmanuel Dreyfus Reviewed-on: http://review.gluster.org/8949 Tested-by: Gluster Build System Reviewed-by: Niels de Vos --- tests/basic/rpm.t | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/basic/rpm.t b/tests/basic/rpm.t index db90398a152..bbe3f464477 100755 --- a/tests/basic/rpm.t +++ b/tests/basic/rpm.t @@ -16,6 +16,16 @@ . $(dirname $0)/../include.rc +case $OSTYPE in +Linux) + ;; +*) + echo "Skip test using mock, which requires Linux" >&2 + SKIP_TESTS + exit 0 + ;; +esac + # enable some extra debugging if [ -n "${DEBUG}" -a "${DEBUG}" != "0" ] then -- cgit