summaryrefslogtreecommitdiffstats
path: root/.semaphore/semaphore-runner.sh
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2022-08-11 13:36:15 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2022-08-11 13:36:15 +0200
commit3b9ac80085ce4acc5bd932d4961d52531a7fc1a4 (patch)
tree86160d816b131c4d4a87a77c5a7a5df2fbc9d471 /.semaphore/semaphore-runner.sh
parentsemaphore: drop the --keyserver= parameter for the download template (diff)
downloadsystemd-3b9ac80085ce4acc5bd932d4961d52531a7fc1a4.tar.xz
systemd-3b9ac80085ce4acc5bd932d4961d52531a7fc1a4.zip
semaphore: run autopkgtest with sudo
Otherwise it can't access the newly create LXC container: ``` autopkgtest-virt-lxc: DBG: wait_booted: detecting init system failed, retrying... autopkgtest-virt-lxc: DBG: stderr: lxc-attach: autopkgtest-lxc-trjmpu: tools/lxc_attach.c: main: 302 You lack access to /home/semaphore/.local/share/lxc ```
Diffstat (limited to '.semaphore/semaphore-runner.sh')
-rwxr-xr-x.semaphore/semaphore-runner.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/.semaphore/semaphore-runner.sh b/.semaphore/semaphore-runner.sh
index a509473b17..98fd7b4411 100755
--- a/.semaphore/semaphore-runner.sh
+++ b/.semaphore/semaphore-runner.sh
@@ -100,10 +100,10 @@ EOF
# now build the package and run the tests
rm -rf "$ARTIFACTS_DIR"
# autopkgtest exits with 2 for "some tests skipped", accept that
- "$AUTOPKGTEST_DIR/runner/autopkgtest" --env DEB_BUILD_OPTIONS=noudeb \
- --env TEST_UPSTREAM=1 ../systemd_*.dsc \
- -o "$ARTIFACTS_DIR" \
- -- lxc -s "$CONTAINER" \
+ sudo "$AUTOPKGTEST_DIR/runner/autopkgtest" --env DEB_BUILD_OPTIONS=noudeb \
+ --env TEST_UPSTREAM=1 ../systemd_*.dsc \
+ -o "$ARTIFACTS_DIR" \
+ -- lxc -s "$CONTAINER" \
|| [ $? -eq 2 ]
;;
*)