build/test: pass correct environment to tests
Avoids breakage of inline checks during test step.
This commit is contained in:
parent
76dd917635
commit
145cad9e0b
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Copyright (c) 2014-2018 Franco Fichtner <franco@opnsense.org>
|
# Copyright (c) 2014-2020 Franco Fichtner <franco@opnsense.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
@ -56,13 +56,13 @@ EOF
|
||||||
|
|
||||||
echo ">>> Running ${PLUGINSDIR} test suite..."
|
echo ">>> Running ${PLUGINSDIR} test suite..."
|
||||||
chroot ${STAGEDIR} /bin/sh -es <<EOF
|
chroot ${STAGEDIR} /bin/sh -es <<EOF
|
||||||
make -C${PLUGINSDIR} lint
|
make -C${PLUGINSDIR} ${PLUGINSENV} lint
|
||||||
make -C${PLUGINSDIR} style
|
make -C${PLUGINSDIR} ${PLUGINSENV} style
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo ">>> Running ${COREDIR} test suite..."
|
echo ">>> Running ${COREDIR} test suite..."
|
||||||
chroot ${STAGEDIR} /bin/sh -es <<EOF
|
chroot ${STAGEDIR} /bin/sh -es <<EOF
|
||||||
make -C${COREDIR} lint
|
make -C${COREDIR} ${COREENV} lint
|
||||||
make -C${COREDIR} style
|
make -C${COREDIR} ${COREENV} style
|
||||||
make -C${COREDIR} test
|
make -C${COREDIR} ${COREENV} test
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in New Issue