Merge pull request #974 from hqhq/fix_cgroup_test
Use absolute cgroup path for integration test
This commit is contained in:
commit
1fb47b08fc
|
@ -35,7 +35,7 @@ function check_cgroup_value() {
|
||||||
|
|
||||||
@test "runc update --kernel-memory (initialized)" {
|
@test "runc update --kernel-memory (initialized)" {
|
||||||
# Add cgroup path
|
# Add cgroup path
|
||||||
sed -i 's/\("linux": {\)/\1\n "cgroupsPath": "runc-cgroups-integration-test",/' ${BUSYBOX_BUNDLE}/config.json
|
sed -i 's/\("linux": {\)/\1\n "cgroupsPath": "\/runc-cgroups-integration-test",/' ${BUSYBOX_BUNDLE}/config.json
|
||||||
|
|
||||||
# Set some initial known values
|
# Set some initial known values
|
||||||
DATA=$(cat <<-EOF
|
DATA=$(cat <<-EOF
|
||||||
|
@ -62,7 +62,7 @@ EOF
|
||||||
|
|
||||||
@test "runc update --kernel-memory (uninitialized)" {
|
@test "runc update --kernel-memory (uninitialized)" {
|
||||||
# Add cgroup path
|
# Add cgroup path
|
||||||
sed -i 's/\("linux": {\)/\1\n "cgroupsPath": "runc-cgroups-integration-test",/' ${BUSYBOX_BUNDLE}/config.json
|
sed -i 's/\("linux": {\)/\1\n "cgroupsPath": "\/runc-cgroups-integration-test",/' ${BUSYBOX_BUNDLE}/config.json
|
||||||
|
|
||||||
# run a detached busybox to work with
|
# run a detached busybox to work with
|
||||||
runc run -d --console /dev/pts/ptmx test_cgroups_kmem
|
runc run -d --console /dev/pts/ptmx test_cgroups_kmem
|
||||||
|
|
|
@ -13,7 +13,7 @@ function setup() {
|
||||||
setup_busybox
|
setup_busybox
|
||||||
|
|
||||||
# Add cgroup path
|
# Add cgroup path
|
||||||
sed -i 's/\("linux": {\)/\1\n "cgroupsPath": "runc-update-integration-test",/' ${BUSYBOX_BUNDLE}/config.json
|
sed -i 's/\("linux": {\)/\1\n "cgroupsPath": "\/runc-update-integration-test",/' ${BUSYBOX_BUNDLE}/config.json
|
||||||
|
|
||||||
# Set some initial known values
|
# Set some initial known values
|
||||||
DATA=$(cat <<EOF
|
DATA=$(cat <<EOF
|
||||||
|
|
Loading…
Reference in New Issue