Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix superpmi unit test on Alpine #83372

Merged
merged 1 commit into from
Mar 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/tests/JIT/superpmi/superpmicollect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,11 @@ private static void RunTest(string testName)
testName = testName.Replace(".cmd", ".sh");
testName = testName.Replace(".bat", ".sh");

// The way tests are run on Linux, we might need to do some setup. In particular,
// if the test scripts are copied from Windows, we need to convert line endings
// to Unix line endings, and make the script executable. We can always do this
// more than once. This same transformation is done in runtest.sh.
// The way tests are run on Linux, we might need to do some setup. It is assumed
// that the line endings of the tests wrapper scripts are correct.
// We need to make the wrapper script executable.
// Review: RunProgram doesn't seem to work if the program isn't a full path.

RunProgram("/usr/bin/perl", @"-pi -e 's/\r\n|\n|\r/\n/g' " + "\"" + testName + "\"");
RunProgram("/bin/chmod", "+x \"" + testName + "\"");

// Now, figure out how to run the test.
Expand Down