Skip to content

Commit

Permalink
fix failed test case
Browse files Browse the repository at this point in the history
  • Loading branch information
xiantang committed Oct 16, 2023
1 parent c24268c commit 6e1761f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runner/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ func TestRunPreCmd(t *testing.T) {
if err != nil {
t.Fatalf("Should not be fail: %s.", err)
}
engine.config.Build.PreCmd = []string{"echo 'hello air' > pre_cmd.txt"}
err = engine.runPreCmd()
if err != nil {
t.Fatalf("Should not be fail: %s.", err)
Expand All @@ -245,6 +246,7 @@ func TestRunPostCmd(t *testing.T) {
t.Fatalf("Should not be fail: %s.", err)
}

engine.config.Build.PostCmd = []string{"echo 'hello air' > post_cmd.txt"}
err = engine.runPostCmd()
if err != nil {
t.Fatalf("Should not be fail: %s.", err)
Expand Down

0 comments on commit 6e1761f

Please sign in to comment.