verify.sh: reach the restore on the diff branch
set -euo pipefail aborted the script on the diff pipeline one line before the cp that restores the pre-run oracle, so --full left a regenerated fixture file in the working tree while printing that nothing had been overwritten. Appended || true. Recorded as F-033. The fix is not yet exercised: the restore branch runs only under --full and has not been entered since the change.
This commit is contained in:
@@ -48,7 +48,7 @@ if [[ "${1:-}" == "--full" ]]; then
|
||||
echo "diff there is expected. Any other difference means the toolchain" >&2
|
||||
echo "has drifted; investigate before proceeding." >&2
|
||||
diff "${tmp}/before.json" \
|
||||
"${REPO}/fixtures/strap-beam-8.0.0/strap-beam-fixtures-8.0.0.json" | head -40 >&2
|
||||
"${REPO}/fixtures/strap-beam-8.0.0/strap-beam-fixtures-8.0.0.json" | head -40 >&2 || true
|
||||
cp "${tmp}/before.json" \
|
||||
"${REPO}/fixtures/strap-beam-8.0.0/strap-beam-fixtures-8.0.0.json"
|
||||
echo >&2
|
||||
|
||||
Reference in New Issue
Block a user