diff options
author | Andrei Belov <defan@nginx.com> | 2020-12-23 18:31:18 +0300 |
---|---|---|
committer | Andrei Belov <defan@nginx.com> | 2020-12-23 18:31:18 +0300 |
commit | c99b175988d40fabf638c03962c01693e10b3795 (patch) | |
tree | 4899f879fd17b20b633924a5d32e9faf78e6b1de /pkg/rpm | |
parent | 53af12def0623006509c08a3e081371a697acbd1 (diff) | |
download | unit-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/rpm')
-rw-r--r-- | pkg/rpm/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/rpm/Makefile b/pkg/rpm/Makefile index 1fefb262..80418149 100644 --- a/pkg/rpm/Makefile +++ b/pkg/rpm/Makefile @@ -276,7 +276,7 @@ test: unit modules test -h rpmbuild/BUILD/unit-$(VERSION)/build-nodebug/$${soname} || \ ln -fs `pwd`/$${so} rpmbuild/BUILD/unit-$(VERSION)/build-nodebug/$${soname} ; \ done ; \ - ( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-nodebug build && env python3 -m pytest $(PYTEST_ARGS) ) ; \ + ( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-nodebug build && env python3 -m pytest --user=nobody $(PYTEST_ARGS) ) ; \ } test-debug: unit modules @@ -287,7 +287,7 @@ test-debug: unit modules test -h rpmbuild/BUILD/unit-$(VERSION)/build-debug/$${soname} || \ ln -fs `pwd`/$${so} rpmbuild/BUILD/unit-$(VERSION)/build-debug/$${soname} ; \ done ; \ - ( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-debug build && env python3 -m pytest $(PYTEST_ARGS) ) ; \ + ( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-debug build && env python3 -m pytest --user=nobody $(PYTEST_ARGS) ) ; \ } clean: |