results is in /src/results; update path.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
Miah Johnson 2019-10-18 17:56:42 -07:00
parent 44aedcf3bd
commit 44384b6c13
2 changed files with 11 additions and 5 deletions

View file

@ -22,11 +22,11 @@ Set-Location $project_root
$env:DO_CHECK=$true; hab pkg build .
if (-not $?) { throw "unable to build" }
. results/last_build.ps1
. /src/results/last_build.ps1
if (-not $?) { throw "unable to determine details about this build" }
Write-Host "--- Installing $pkg_ident"
hab pkg install results/$pkg_artifact
hab pkg install /src/results/$pkg_artifact
if (-not $?) { throw "unable to install this build" }
Write-Host "+++ Testing $Plan"

View file

@ -9,7 +9,7 @@ echo "--- system details"
uname -a
echo "--- Generating fake origin key"
hab origin key generate ${HAB_ORIGIN}
hab origin key generate $HAB_ORIGIN
echo "--- Building $PLAN"
project_root="$(git rev-parse --show-toplevel)"
@ -17,10 +17,16 @@ cd "$project_root"
DO_CHECK=true hab pkg build .
. results/last_build.sh
if [ -f /src/results/last_build.sh ]; then
. /src/results/last_build.sh
echo "pkg_ident"
echo $pkg_ident
echo "pkg_artifact"
echo $pkg_artifact
fi
echo "--- Installing $pkg_ident"
hab pkg install "results/$pkg_artifact"
hab pkg install "/src/results/$pkg_artifact"
echo "+++ Testing $PLAN"
pushd "$project_root/test/artifact"