Skip to content

Commit

Permalink
trial fix for CI differences
Browse files Browse the repository at this point in the history
  • Loading branch information
sagerb committed Dec 17, 2024
1 parent 18929be commit 7d15f48
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion internal/interpreters/r_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ https://www.gnu.org/licenses/.`,
}

func (s *RSuite) TestGetRVersionFromExecutable() {
if runtime.GOOS == "windows" {
s.T().Skip("This test does not run on Windows")
}

for _, tc := range getOutputTestData() {
s.SetupTest()
log := logging.New()
Expand Down Expand Up @@ -205,6 +209,9 @@ func (s *RSuite) TestGetRVersionFromExecutable() {
}

func (s *RSuite) TestGetRVersionFromExecutableWindows() {
if runtime.GOOS != "windows" {
s.T().Skip("This test only runs on Windows")
}
// R on Windows emits version information on stderr
for _, tc := range getOutputTestData() {
s.SetupTest()
Expand Down Expand Up @@ -233,7 +240,10 @@ func (s *RSuite) TestGetRVersionFromExecutableWindows() {

lockFile, _, err := rInterpreter.GetLockFilePath()
s.NoError(err)
s.Equal(tc.expectedLockfilePath, lockFile.String())
absLockFile := util.NewAbsolutePath(lockFile.String(), s.fs)
absExpectedLockFile := util.NewAbsolutePath(tc.expectedLockfilePath, s.fs)

s.Equal(absExpectedLockFile.String(), absLockFile.String())
}
}

Expand Down

0 comments on commit 7d15f48

Please sign in to comment.