Skip to content

Commit

Permalink
Fixed failing integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Aug 2, 2024
1 parent eb977f7 commit b25a6ef
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/integration/run_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func (suite *RunIntegrationTestSuite) TestRun_Args() {
cmd := `if [ "$1" = "<3" ]; then echo heart; fi`
if runtime.GOOS == "windows" {
cmd = `@echo off
if "%1"=="<3" (echo heart)` // need to match indent of YAML below
if %1=="<3" (echo heart)` // need to match indent of YAML below
}
_, err = asyFile.WriteString(strings.TrimPrefix(fmt.Sprintf(`
- name: args
Expand All @@ -326,12 +326,6 @@ func (suite *RunIntegrationTestSuite) TestRun_Args() {
suite.Require().NoError(err, "extra config is appended")

arg := "<3"
if runtime.GOOS == "windows" {
// The '<' needs to be escaped with '^', and I don't know why. There is no way around it.
// The other exec and shell integration tests that test arg passing do not need this escape.
// Only this batch test does.
arg = "^<3"
}
cp := ts.Spawn("run", "args", arg)
cp.Expect("heart", termtest.OptExpectTimeout(5*time.Second))
}
Expand Down

0 comments on commit b25a6ef

Please sign in to comment.