Skip to content

Commit 9f90476

Browse files
committed
Handle trunk ucm failing on in-place transcripts
1 parent 544793f commit 9f90476

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/cloud-client-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
CLOUD_CLIENT_VERSION: ${{ matrix.cloud-client-version }}
5252
UNISON_CLOUD_ACCESS_TOKEN: ${{ secrets.CLOUD_USER_ACCESS_TOKEN }}
5353
UNISON_DEBUG: timing
54+
UCM_RELEASE: ${{ matrix.ucm-release-version }}
5455
run: |
5556
apt-get update && apt-get -y install gettext-base
5657
./run-tests.sh

run-tests.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@ envsubst < cloud-tests.tpl.md > cloud-tests.md
77
exit_status=0
88
codebase="$PWD/unison-code"
99

10-
ucm -C "$codebase" transcript.fork --save-codebase-to "$codebase" cloud-tests.md || exit_status=$?
10+
run_transcript() {
11+
case "$UCM_RELEASE" in
12+
"release%2F0.5.25" | "release%2F0.5.41")
13+
ucm -C "$codebase" transcript.fork --save-codebase-to "$codebase" cloud-tests.md
14+
;;
15+
*)
16+
ucm -C "$codebase" transcript.in-place cloud-tests.md
17+
;;
18+
esac
19+
}
20+
21+
run_transcript || exit_status=$?
1122
cat cloud-tests.output.md
1223

1324
exit "$exit_status"

0 commit comments

Comments
 (0)