From ce546ecfca24f2b7717c6cffda5ad6b87713ce0d Mon Sep 17 00:00:00 2001 From: Philip Meulengracht Date: Mon, 5 Aug 2024 12:02:18 +0200 Subject: [PATCH] tests: change tests to not require a priveliged container --- spread.yaml | 3 +-- tests/spread/integration/mount/test.sh | 25 ++++++++++++---------- tests/spread/integration/systemd/task.yaml | 6 ------ 3 files changed, 15 insertions(+), 19 deletions(-) diff --git a/spread.yaml b/spread.yaml index aa3205684..1ddafa8e4 100644 --- a/spread.yaml +++ b/spread.yaml @@ -17,8 +17,7 @@ backends: echo "Allocating $SPREAD_SYSTEM..." docker_image=$(echo $SPREAD_SYSTEM | awk -F '-' '{print $1":"$2}') docker_arch=$(echo $SPREAD_SYSTEM | awk -F '-' '{print $NF}') - docker run --cap-add SYS_ADMIN --security-opt apparmor=unconfined \ - --rm -e DEBIAN_FRONTEND=noninteractice \ + docker run --rm -e DEBIAN_FRONTEND=noninteractice \ -e usr=$SPREAD_SYSTEM_USERNAME -e pass=$SPREAD_SYSTEM_PASSWORD \ --name $SPREAD_SYSTEM -d $docker_arch/$docker_image sh -c ' set -x diff --git a/tests/spread/integration/mount/test.sh b/tests/spread/integration/mount/test.sh index 922ca1166..2f0dd6f01 100755 --- a/tests/spread/integration/mount/test.sh +++ b/tests/spread/integration/mount/test.sh @@ -1,14 +1,17 @@ #!/bin/bash -# Run a smoke test for mount and umount to verify that -# they are doing what we expect by testing on /proc +# simple smoke test that it loads +mount --help + +cat > /etc/fstab <