summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2020-12-23 18:31:18 +0300
committerAndrei Belov <defan@nginx.com>2020-12-23 18:31:18 +0300
commitc99b175988d40fabf638c03962c01693e10b3795 (patch)
tree4899f879fd17b20b633924a5d32e9faf78e6b1de /pkg/deb
parent53af12def0623006509c08a3e081371a697acbd1 (diff)
downloadunit-c99b175988d40fabf638c03962c01693e10b3795.tar.gz
unit-c99b175988d40fabf638c03962c01693e10b3795.tar.bz2
Packages: set the "--user" value to "nobody" for build-stage tests.
This allows tests to pass well in cases when the default user specified in the ./configure parameters does not exist in the building environment.
Diffstat (limited to 'pkg/deb')
-rw-r--r--pkg/deb/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/deb/Makefile b/pkg/deb/Makefile
index 6ce7373b..80898a8f 100644
--- a/pkg/deb/Makefile
+++ b/pkg/deb/Makefile
@@ -317,7 +317,7 @@ test: unit modules
test -h debuild/unit-$(VERSION)/debian/build-unit/build/$${soname} || \
ln -fs `pwd`/$${so} debuild/unit-$(VERSION)/debian/build-unit/build/$${soname} ; \
done ; \
- ( cd debuild/unit-$(VERSION)/debian/build-unit && env python3 -m pytest $(PYTEST_ARGS) ) ; \
+ ( cd debuild/unit-$(VERSION)/debian/build-unit && env python3 -m pytest --user=nobody $(PYTEST_ARGS) ) ; \
}
test-debug: unit modules
@@ -328,7 +328,7 @@ test-debug: unit modules
test -h debuild/unit-$(VERSION)/debian/build-unit-debug/build/$${soname} || \
ln -fs `pwd`/$${so} debuild/unit-$(VERSION)/debian/build-unit-debug/build/$${soname} ; \
done ; \
- ( cd debuild/unit-$(VERSION)/debian/build-unit-debug && env python3 -m pytest $(PYTEST_ARGS) ) ; \
+ ( cd debuild/unit-$(VERSION)/debian/build-unit-debug && env python3 -m pytest --user=nobody $(PYTEST_ARGS) ) ; \
}
clean: