Skip to content

Commit b4b30ee

Browse files
committed
WIP
1 parent caed0d9 commit b4b30ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/bindown/cli_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -505,15 +505,15 @@ url_checksums:
505505
`, depURL, depURL))
506506
outputDir := filepath.Join(runner.tmpDir, "output")
507507
result := runner.run("wrap", "runnable", "bindown", "--bindown-tag", "v4.10.0", "--output", outputDir)
508+
testutil.CheckGoldenDir(t, outputDir, filepath.FromSlash("testdata/golden/wrap"))
508509
wantRunnable := filepath.Join(outputDir, "runnable")
509510
wantBindown := filepath.Join(outputDir, "bindown")
510511
result.assertState(resultState{stdout: wantBindown + "\n" + wantRunnable})
511512
info, err := os.Stat(wantRunnable)
512513
require.NoError(t, err)
513514
testutil.AssertExecutable(t, info.Mode())
514-
cmd := exec.Command("sh", "-c", wantRunnable)
515+
cmd := exec.Command("sh", "-c", filepath.ToSlash(wantRunnable))
515516
out, err := cmd.Output()
516517
require.NoError(t, err)
517518
require.Equal(t, "Hello world", strings.TrimSpace(string(out)))
518-
testutil.CheckGoldenDir(t, outputDir, filepath.FromSlash("testdata/golden/wrap"))
519519
}

0 commit comments

Comments
 (0)