jcapik pushed to kubernetes (f21). "Run hack/test-cmd.sh only when /sys/fs/cgroup directory is mounted"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Jun 10 14:54:03 UTC 2015


From 650476692b0a26bc882c9341a0431f4d0a0bfc9a Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup at redhat.com>
Date: Tue, 14 Apr 2015 16:55:18 +0200
Subject: Run hack/test-cmd.sh only when /sys/fs/cgroup directory is mounted


diff --git a/kubernetes.spec b/kubernetes.spec
index 9cd539b..97c66c8 100644
--- a/kubernetes.spec
+++ b/kubernetes.spec
@@ -257,7 +257,10 @@ hack/build-go.sh --use_go_build
 %endif
 
 echo "******Testing the commands*****"
-hack/test-cmd.sh
+# run the test only if /fs/sys/cgroup is mounted
+if [ -d /sys/fs/cgroup ]; then
+	hack/test-cmd.sh
+fi
 echo "******Benchmarking kube********"
 hack/benchmark-go.sh
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/kubernetes.git/commit/?h=f21&id=650476692b0a26bc882c9341a0431f4d0a0bfc9a


More information about the scm-commits mailing list