diff --git a/Makefile b/Makefile index 0b2c2fe649..f485069256 100644 --- a/Makefile +++ b/Makefile @@ -362,15 +362,19 @@ migrate: validate: @${PLUGINCTL} -v +# XXX we should stop treating AclConfig dir as the test's actual /conf dir +TEST_NO_CLOBBER= ${TESTDIR}/app/models/OPNsense/ACL/AclConfig/config.xml + test: .if exists(${TESTDIR}) @if [ "$$(${VERSIONBIN} -v)" != "${CORE_PKGVERSION}" ]; then \ echo "Installed version does not match, expected ${CORE_PKGVERSION}"; \ exit 1; \ fi - @cd ${TESTDIR} && phpunit || true; rm -rf ${TESTDIR}/.phpunit.result.cache \ + @cd ${TESTDIR} && cp ${TEST_NO_CLOBBER} ${TEST_NO_CLOBBER}.save && \ + phpunit || true; rm -rf ${TESTDIR}/.phpunit.result.cache \ ${TESTDIR}/app/models/OPNsense/ACL/AclConfig/backup; \ - ${GIT} checkout -f ${TESTDIR}/app/models/OPNsense/ACL/AclConfig/config.xml + mv ${TEST_NO_CLOBBER}.save ${TEST_NO_CLOBBER} .endif clean: clean-pkgdir clean-wrksrc clean-mfcdir checkout