Skip to content

Commit 6e1761f

Browse files
committed
fix failed test case
1 parent c24268c commit 6e1761f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runner/engine_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ func TestRunPreCmd(t *testing.T) {
220220
if err != nil {
221221
t.Fatalf("Should not be fail: %s.", err)
222222
}
223+
engine.config.Build.PreCmd = []string{"echo 'hello air' > pre_cmd.txt"}
223224
err = engine.runPreCmd()
224225
if err != nil {
225226
t.Fatalf("Should not be fail: %s.", err)
@@ -245,6 +246,7 @@ func TestRunPostCmd(t *testing.T) {
245246
t.Fatalf("Should not be fail: %s.", err)
246247
}
247248

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

0 commit comments

Comments
 (0)