mirror of
https://github.com/containers/youki
synced 2024-05-05 23:26:32 +02:00
skip cgroup v2 test of oci-tools
Signed-off-by: utam0k <k0ma@utam0k.jp>
This commit is contained in:
parent
28da7c076c
commit
ce403847ae
|
@ -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,6 +121,10 @@ 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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue