Skip to content

Commit

Permalink
Improve logging for test-daml-version-and-install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dylant-da committed Oct 23, 2023
1 parent db37064 commit 413ca8d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions compatibility/test-daml-version-and-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ fi
rm -r $DAML_CACHE
mkdir $DAML_CACHE

daml install latest || true
daml install latest || true # daml install fails due to sandboxing, but we can still check that the version list is up to date
echo '`daml install latest` cache/versions.txt:'
cat $DAML_CACHE/versions.txt
if ! stat $DAML_CACHE/versions.txt; then
exit_with_message 'Cached versions.txt should exist after running `daml install latest`, even if it fails'
fi
Expand All @@ -89,7 +91,9 @@ fi
rm -r $DAML_CACHE
mkdir $DAML_CACHE

daml install latest --snapshots yes || true
daml install latest --snapshots yes || true # daml install fails due to sandboxing, but we can still check that the version list is up to date
echo '`daml install latest --snapshots yes` cache/versions.txt:'
cat $DAML_CACHE/versions.txt
if ! stat $DAML_CACHE/versions.txt; then
exit_with_message 'Cached versions.txt should exist after running `daml install latest --snapshots yes`, even if it fails'
fi
Expand Down

0 comments on commit 413ca8d

Please sign in to comment.