CTLR2="";
CPU="";
MEMORY="";
+SKIP_TEST=77
+RET=0
declare -a allcontrollers;
declare -a targets;
echo "Kernel needs to have 2 controllers enabled";
echo "Recompile your kernel with at least 2 controllers"
echo "Exiting the tests.....";
- exit 1;
+ exit $SKIP_TEST;
fi;
return 0; # true
echo "Kernel has none of cpu/memory controllers enabled";
echo "Recompile your kernel with at least one of these enabled"
echo "Exiting the tests.....";
- exit 1;
+ exit $SKIP_TEST;
fi;
# At least one Controller is enabled. So proceed further.
else
echo "Only 1 controler enabled in kernel";
echo "So not running multiple mount testcases";
- exit 1;
+ exit $SKIP_TEST;
fi;
fi;
echo "Your Kernel seems to be too old. Plz recompile your"
echo "Kernel with cgroups and appropriate controllers enabled"
echo " Exiting the testcases...."
- exit 1;
+ exit $SKIP_TEST;
fi;
# TestSet01: Run tests without mounting cgroup filesystem
echo Test binary $FILE exited abnormaly with return value $RC;
# Do not exit here. Failure in this case does not imply
# failure in other cases also
+ RET=$RC
fi;
# TestSet02: Run tests with mounting cgroup filesystem
if [ $RC -ne 0 ]
then
echo Test binary $FILE exited abnormaly with return value $RC;
+ RET=$RC
fi;
umount_fs;
if [ $RC -ne 0 ]
then
echo Test binary $FILE exited abnormaly with return value $RC;
+ RET=$RC
fi;
umount_fs;
- exit 0;
+ exit $RET;