diff --git a/.expeditor/buildkite/artifact.habitat.test.ps1 b/.expeditor/buildkite/artifact.habitat.test.ps1 index adeb59f6..209c4c83 100755 --- a/.expeditor/buildkite/artifact.habitat.test.ps1 +++ b/.expeditor/buildkite/artifact.habitat.test.ps1 @@ -78,7 +78,7 @@ Push-Location $project_root try { Write-Host "Running unit tests..." - /habitat/tests/test.ps1 $pkg_ident + habitat/tests/test.ps1 $pkg_ident } finally { # Ensure we always return to the original directory diff --git a/habitat/tests/test.sh b/habitat/tests/test.sh index 72e288a4..757f5114 100755 --- a/habitat/tests/test.sh +++ b/habitat/tests/test.sh @@ -21,6 +21,6 @@ cd "${project_root}" echo "--- :mag_right: Testing ${pkg_ident} executables" actual_version=$(hab pkg exec "${pkg_ident}" chef-cli -v | sed -E 's/.*version: ([0-9]+\.[0-9]+\.[0-9]+).*/\1/') -[[ "$package_version" = "$actual_version" ]] || error "chef-cli version is not the expected version. Expected '$package_version', got '$actual_version'" +[[ "$package_version" = "$actual_version" ]] || error "chef-cli version is not the expected version ${pkg_ident}. Expected '$package_version', got '$actual_version'"