From dd02daeb0ce20780ed96c4ab2738a7f2b8b986e5 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 17 Mar 2025 12:43:05 +0100 Subject: just profile: include output artifact hashes --- test/end-to-end/profile/basic.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/end-to-end') diff --git a/test/end-to-end/profile/basic.sh b/test/end-to-end/profile/basic.sh index aeafb9e7..70ba2b5a 100644 --- a/test/end-to-end/profile/basic.sh +++ b/test/end-to-end/profile/basic.sh @@ -22,6 +22,7 @@ readonly LBR="${TEST_TMPDIR}/local-build-root" readonly LOG_DIR="${PWD}/log" readonly ETC_DIR="${PWD}/etc" readonly WRK_DIR="${PWD}/work" +readonly OUT="${TEST_TMPDIR}/out" # Set up an rc file, requesting invocation logging mkdir -p "${ETC_DIR}" @@ -69,6 +70,11 @@ PROFILE="${INVOCATION_DIR}/profile.json" cat "${PROFILE}" [ $(jq '.actions | .[] | .cached' "${PROFILE}") = "false" ] +OUT_ARTIFACT=$(jq -r '.actions | .[] | .artifacts."upper.txt"' "${PROFILE}") +"${JUST_MR}" --rc "${RC}" install-cas -o "${OUT}/upper.txt" "${OUT_ARTIFACT}" 2>&1 +grep BLABLABLA "${OUT}/upper.txt" +echo + # Build again, this time the action should be cached; # again abuse the project id to distingush the runs cat > rc.json <<'EOF' -- cgit v1.2.3