mirror of
https://github.com/systemd/systemd.git
synced 2025-01-18 10:04:04 +03:00
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 ```
This commit is contained in:
parent
8162feac10
commit
3b9ac80085
@ -100,7 +100,7 @@ EOF
|
|||||||
# now build the package and run the tests
|
# now build the package and run the tests
|
||||||
rm -rf "$ARTIFACTS_DIR"
|
rm -rf "$ARTIFACTS_DIR"
|
||||||
# autopkgtest exits with 2 for "some tests skipped", accept that
|
# autopkgtest exits with 2 for "some tests skipped", accept that
|
||||||
"$AUTOPKGTEST_DIR/runner/autopkgtest" --env DEB_BUILD_OPTIONS=noudeb \
|
sudo "$AUTOPKGTEST_DIR/runner/autopkgtest" --env DEB_BUILD_OPTIONS=noudeb \
|
||||||
--env TEST_UPSTREAM=1 ../systemd_*.dsc \
|
--env TEST_UPSTREAM=1 ../systemd_*.dsc \
|
||||||
-o "$ARTIFACTS_DIR" \
|
-o "$ARTIFACTS_DIR" \
|
||||||
-- lxc -s "$CONTAINER" \
|
-- lxc -s "$CONTAINER" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user