From 3cb933a0136d63db1e7d80d8cfa2a73e64563bea Mon Sep 17 00:00:00 2001 From: zongz Date: Wed, 28 Aug 2024 11:23:08 +0800 Subject: [PATCH] fix: add a test case for compile non-k file Signed-off-by: zongz --- pkg/client/client_test.go | 3 +++ pkg/client/test_data/test_run_options/with_args/run_13/temp | 1 + 2 files changed, 4 insertions(+) create mode 100644 pkg/client/test_data/test_run_options/with_args/run_13/temp diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index 2474c7a2..def9cdf3 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -2134,6 +2134,9 @@ func TestRunLocalWithArgs(t *testing.T) { filepath.Join(pkgPath, "with_args", "run_12", "sub1", "main.k"), filepath.Join(pkgPath, "with_args", "run_12", "sub2", "main.k"), }, []string{}, "", false, "", "sub1: 1\nsub2: 2"}, + {[]string{ + filepath.Join(pkgPath, "with_args", "run_13", "temp"), + }, []string{}, "", false, "", "temp: non-k-file"}, } for _, test := range tests { diff --git a/pkg/client/test_data/test_run_options/with_args/run_13/temp b/pkg/client/test_data/test_run_options/with_args/run_13/temp new file mode 100644 index 00000000..a0e97235 --- /dev/null +++ b/pkg/client/test_data/test_run_options/with_args/run_13/temp @@ -0,0 +1 @@ +temp = "non-k-file" \ No newline at end of file