test: Add effective cgroup limits testing
This commit is contained in:
@@ -28,6 +28,15 @@ assert_eq() {(
|
||||
fi
|
||||
)}
|
||||
|
||||
assert_le() {(
|
||||
set +ex
|
||||
|
||||
if [[ "${1:?}" -gt "${2:?}" ]]; then
|
||||
echo "FAIL: '$1' > '$2'" >&2
|
||||
exit 1
|
||||
fi
|
||||
)}
|
||||
|
||||
assert_in() {(
|
||||
set +ex
|
||||
|
||||
|
||||
Reference in New Issue
Block a user