From 2e458cd73de54cfde8e60509c41fb8421f7f41e7 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Fri, 24 Jul 2020 18:04:52 -0400 Subject: [PATCH] make acceptance test results dir on run --- test/acceptance/deb.sh | 1 + test/acceptance/mac.sh | 1 + test/acceptance/rpm.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/test/acceptance/deb.sh b/test/acceptance/deb.sh index a49b0c918..c94668d75 100755 --- a/test/acceptance/deb.sh +++ b/test/acceptance/deb.sh @@ -42,6 +42,7 @@ docker run --rm \ " # keep the generated report around +mkdir -p ${RESULTSDIR} cp ${REPORT} ${RESULTSDIR} # compare the results to a known good output diff --git a/test/acceptance/mac.sh b/test/acceptance/mac.sh index b783e885b..fa6a2cded 100755 --- a/test/acceptance/mac.sh +++ b/test/acceptance/mac.sh @@ -39,6 +39,7 @@ ${DISTDIR}/syft_darwin_amd64/syft docker-archive://${TEST_IMAGE_TAR} -vv -o json cat ${REPORT} # keep the generated report around +mkdir -p ${RESULTSDIR} cp ${REPORT} ${RESULTSDIR} # compare the results to a known good output diff --git a/test/acceptance/rpm.sh b/test/acceptance/rpm.sh index 9eb43b3d8..5a55e09a5 100755 --- a/test/acceptance/rpm.sh +++ b/test/acceptance/rpm.sh @@ -42,6 +42,7 @@ docker run --rm \ " # keep the generated report around +mkdir -p ${RESULTSDIR} cp ${REPORT} ${RESULTSDIR} # compare the results to a known good output