1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-04-24 10:55:25 +02:00

skip cgroup v2 test of oci-tools

Signed-off-by: utam0k <k0ma@utam0k.jp>
This commit is contained in:
utam0k 2022-12-12 21:57:25 +09:00
parent 28da7c076c
commit ce403847ae
No known key found for this signature in database
GPG Key ID: E9844426F4EA9E67

View File

@ -84,6 +84,11 @@ check_environment() {
return 1
fi
fi
if [[ $test_case == "delete_only_create_resources/delete_only_create_resources.t" ]]; then
if [[ ! -e "/sys/fs/cgroup/pids/cgrouptest/tasks" ]]; then
return 1
fi
fi
}
if [[ ! -e $RUNTIME ]]; then
@ -116,8 +121,12 @@ for case in "${test_cases[@]}"; do
mkdir -p "$(dirname $logfile)"
sudo RUST_BACKTRACE=1 RUNTIME=${RUNTIME} ${OCI_TEST_DIR}/validation/$case >$logfile 2>&1 || (cat $logfile && exit 1)
if [ 0 -ne $(grep "not ok" $logfile | wc -l ) ]; then
cat $logfile
exit 1
if [ 0 -eq $(grep "# cgroupv2 is not supported yet " $logfile | wc -l ) ]; then
echo "Skip $case bacause oci-runtime-tools doesn't support cgroup v2"
continue;
fi
cat $logfile
exit 1
fi
sleep 1
done