Hi,

This patch check the utsns enabled with the running kernel version.

Signed-off By: [EMAIL PROTECTED]
Cc: "Serge E. Hallyn" <[EMAIL PROTECTED]>
--
 container_test.sh |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Index: ltp-full-20070731/testcases/kernel/containers/container_test.sh
===================================================================
--- ltp-full-20070731.orig/testcases/kernel/containers/container_test.sh
+++ ltp-full-20070731/testcases/kernel/containers/container_test.sh
@@ -15,13 +15,13 @@ if [ $? -eq 1 ]; then
        echo "Unshare not supported.  Not running container tests"
        exit 0
 fi
-
-#if [ $? -eq 0 ]; then
+check_utsns_enabled
+if [ $? -eq 0 ]; then
        echo "Running utsns tests."
        runutstest.sh
-#else
-#      echo "Uts namespaces not enabled in kernel.  Not running utsns
tests."
-#fi
+else
+       echo "Uts namespaces not enabled in kernel.  Not running utsns
tests."
+fi

 #check_pidns_enabled
 #if [ $? -eq 0 ]; then


Thanks
Rishi

This patch check the utsns enabled with the running kernel version or not.

Signed-off By: [EMAIL PROTECTED]
Cc: "Serge E. Hallyn" <[EMAIL PROTECTED]> 
--
 container_test.sh |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Index: ltp-full-20070731/testcases/kernel/containers/container_test.sh
===================================================================
--- ltp-full-20070731.orig/testcases/kernel/containers/container_test.sh
+++ ltp-full-20070731/testcases/kernel/containers/container_test.sh
@@ -15,13 +15,13 @@ if [ $? -eq 1 ]; then
 	echo "Unshare not supported.  Not running container tests"
 	exit 0
 fi
-
-#if [ $? -eq 0 ]; then
+check_utsns_enabled
+if [ $? -eq 0 ]; then
 	echo "Running utsns tests."
 	runutstest.sh
-#else
-#	echo "Uts namespaces not enabled in kernel.  Not running utsns tests."
-#fi
+else
+	echo "Uts namespaces not enabled in kernel.  Not running utsns tests."
+fi
 
 #check_pidns_enabled
 #if [ $? -eq 0 ]; then
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to