Skip to content

Commit

Permalink
Merge pull request #1406 from utam0k/oci-cgroup-v2
Browse files Browse the repository at this point in the history
skip cgroup v2 test of oci-tools
  • Loading branch information
YJDoc2 authored Jan 4, 2023
2 parents c40e911 + ce40384 commit 8491bee
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions scripts/oci_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 8491bee

Please sign in to comment.