Skip to content

Commit

Permalink
test: fix tests/reservoirConfig on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tydeu committed Sep 2, 2024
1 parent 084ca36 commit 9799b1a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
12 changes: 12 additions & 0 deletions src/lake/tests/reservoirConfig/expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{"versionTags": ["v1", "v2"],
"version": "0.0.0",
"schemaVersion": "1.0.0",
"readmeFile": null,
"platformIndependent": null,
"name": "test",
"licenseFiles": [],
"license": "",
"keywords": ["test-case"],
"homepage": "https://example.com",
"doIndex": true,
"description": "Tests Reservoir configuration"}
16 changes: 1 addition & 15 deletions src/lake/tests/reservoirConfig/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,7 @@ git tag v2
git commit --allow-empty -m "commit 3"
git tag etc

$LAKE reservoir-config | diff -u --strip-trailing-cr <(cat << 'EOF'
{"versionTags": ["v1", "v2"],
"version": "0.0.0",
"schemaVersion": "1.0.0",
"readmeFile": null,
"platformIndependent": null,
"name": "test",
"licenseFiles": [],
"license": "",
"keywords": ["test-case"],
"homepage": "https://example.com",
"doIndex": true,
"description": "Tests Reservoir configuration"}
EOF
) -
$LAKE reservoir-config | diff -u --strip-trailing-cr expected.json -

# Cleanup git repo
rm -rf .git

0 comments on commit 9799b1a

Please sign in to comment.