-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We have recently updated a number of tests to use the SDK's RID (instead of the expected OS non-portable RID). We should have a test that explicitly tests that the SDK's RID matches the expected OS-specific non-portable RID. This is that test. Also fix publish-ready-to-run to use the SDK's runtime id.
- Loading branch information
Showing
4 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "non-portable-rid", | ||
"enabled": true, | ||
"requiresSdk": true, | ||
"version": "6.0", | ||
"versionSpecific": false, | ||
"type": "bash", | ||
"cleanup": true, | ||
"skipWhen":[ | ||
"portable", // this test only tests non-portable SDKs | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
IFS=$'\n\t' | ||
set -x | ||
|
||
sdk_rid="$(../runtime-id --sdk)" | ||
os_rid="$(../runtime-id)" | ||
|
||
if [[ $sdk_rid != $os_rid ]]; then | ||
echo "SDK RID ($sdk_rid) did not match expected RID ($os_rid)" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters