aboutsummaryrefslogtreecommitdiff
path: root/testrun.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testrun.sh')
-rwxr-xr-xtestrun.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/testrun.sh b/testrun.sh
index 774962d..b8caf37 100755
--- a/testrun.sh
+++ b/testrun.sh
@@ -2,11 +2,14 @@
mkdir -p testrun/pkgout
+CHOWN_TO="$USER"
+OUTPUT="$(pwd)/testrun/pkgout"
+
./build.sh
docker run --name archpkg-test --env PACKAGE_NAME=minipro \
- --env FORCE_REBUILD=yes --env CHOWN="$UID:$(id -g "$USER")" \
- -v "$(pwd)/testrun/pkgout:/pkgout" \
+ --env FORCE_REBUILD=yes --env CHOWN="$(id -u "$CHOWN_TO"):$(id -g "$CHOWN_TO")" \
+ -v "$OUTPUT:/pkgout" \
archpkg
docker rm archpkg-test