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.
This commit is contained in:
@@ -317,7 +317,7 @@ test: unit modules
|
|||||||
test -h debuild/unit-$(VERSION)/debian/build-unit/build/$${soname} || \
|
test -h debuild/unit-$(VERSION)/debian/build-unit/build/$${soname} || \
|
||||||
ln -fs `pwd`/$${so} debuild/unit-$(VERSION)/debian/build-unit/build/$${soname} ; \
|
ln -fs `pwd`/$${so} debuild/unit-$(VERSION)/debian/build-unit/build/$${soname} ; \
|
||||||
done ; \
|
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
|
test-debug: unit modules
|
||||||
@@ -328,7 +328,7 @@ test-debug: unit modules
|
|||||||
test -h debuild/unit-$(VERSION)/debian/build-unit-debug/build/$${soname} || \
|
test -h debuild/unit-$(VERSION)/debian/build-unit-debug/build/$${soname} || \
|
||||||
ln -fs `pwd`/$${so} debuild/unit-$(VERSION)/debian/build-unit-debug/build/$${soname} ; \
|
ln -fs `pwd`/$${so} debuild/unit-$(VERSION)/debian/build-unit-debug/build/$${soname} ; \
|
||||||
done ; \
|
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:
|
clean:
|
||||||
|
|||||||
@@ -276,7 +276,7 @@ test: unit modules
|
|||||||
test -h rpmbuild/BUILD/unit-$(VERSION)/build-nodebug/$${soname} || \
|
test -h rpmbuild/BUILD/unit-$(VERSION)/build-nodebug/$${soname} || \
|
||||||
ln -fs `pwd`/$${so} rpmbuild/BUILD/unit-$(VERSION)/build-nodebug/$${soname} ; \
|
ln -fs `pwd`/$${so} rpmbuild/BUILD/unit-$(VERSION)/build-nodebug/$${soname} ; \
|
||||||
done ; \
|
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
|
test-debug: unit modules
|
||||||
@@ -287,7 +287,7 @@ test-debug: unit modules
|
|||||||
test -h rpmbuild/BUILD/unit-$(VERSION)/build-debug/$${soname} || \
|
test -h rpmbuild/BUILD/unit-$(VERSION)/build-debug/$${soname} || \
|
||||||
ln -fs `pwd`/$${so} rpmbuild/BUILD/unit-$(VERSION)/build-debug/$${soname} ; \
|
ln -fs `pwd`/$${so} rpmbuild/BUILD/unit-$(VERSION)/build-debug/$${soname} ; \
|
||||||
done ; \
|
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:
|
clean:
|
||||||
|
|||||||
Reference in New Issue
Block a user