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

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 14 15:04:55 UTC 2015


>From a4c44a81adc39a189da4ea7630b535b22716dd2f 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 19c4cf0..5ac86f4 100644
--- a/kubernetes.spec
+++ b/kubernetes.spec
@@ -256,7 +256,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=master&id=a4c44a81adc39a189da4ea7630b535b22716dd2f


More information about the scm-commits mailing list