diff options
author | Kayla Washburn <mckayla@hey.com> | 2022-06-08 15:30:16 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-08 15:30:16 -0600 |
commit | 94068b7109af64eba2cb9fd299e62705a5358069 (patch) | |
tree | 7ba43427fb32d43009437898bbd336932c02e754 /cli/tests/testdata | |
parent | a0a13b3a1b5b654ad36a25c4785cab539555840a (diff) |
feat(task): add `--cwd` flag for configuring the working directory (#14823)
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r-- | cli/tests/testdata/task/deno.json | 3 | ||||
-rw-r--r-- | cli/tests/testdata/task/task_cwd.out | 1 | ||||
-rw-r--r-- | cli/tests/testdata/task/task_no_args.out | 2 | ||||
-rw-r--r-- | cli/tests/testdata/task/task_non_existent.out | 2 |
4 files changed, 7 insertions, 1 deletions
diff --git a/cli/tests/testdata/task/deno.json b/cli/tests/testdata/task/deno.json index 279c7ea8b..229315a4e 100644 --- a/cli/tests/testdata/task/deno.json +++ b/cli/tests/testdata/task/deno.json @@ -5,6 +5,7 @@ "deno_echo": "deno eval 'console.log(5)'", "strings": "deno run main.ts && deno eval \"console.log(\\\"test\\\")\"", "piped": "echo 12345 | (deno eval 'const b = new Uint8Array(1);Deno.stdin.readSync(b);console.log(b)' && deno eval 'const b = new Uint8Array(1);Deno.stdin.readSync(b);console.log(b)')", - "exit_code_5": "echo $(echo 10 ; exit 2) && exit 5" + "exit_code_5": "echo $(echo 10 ; exit 2) && exit 5", + "echo_cwd": "echo $(pwd)" } } diff --git a/cli/tests/testdata/task/task_cwd.out b/cli/tests/testdata/task/task_cwd.out new file mode 100644 index 000000000..bfe3e7b11 --- /dev/null +++ b/cli/tests/testdata/task/task_cwd.out @@ -0,0 +1 @@ +[WILDCARD]tests diff --git a/cli/tests/testdata/task/task_no_args.out b/cli/tests/testdata/task/task_no_args.out index e8c034a2d..d7e509656 100644 --- a/cli/tests/testdata/task/task_no_args.out +++ b/cli/tests/testdata/task/task_no_args.out @@ -5,6 +5,8 @@ Available tasks: deno eval 'console.log(5)' - echo echo 1 +- echo_cwd + echo $(pwd) - exit_code_5 echo $(echo 10 ; exit 2) && exit 5 - piped diff --git a/cli/tests/testdata/task/task_non_existent.out b/cli/tests/testdata/task/task_non_existent.out index bd4b73c6f..4867d3068 100644 --- a/cli/tests/testdata/task/task_non_existent.out +++ b/cli/tests/testdata/task/task_non_existent.out @@ -7,6 +7,8 @@ Available tasks: deno eval 'console.log(5)' - echo echo 1 +- echo_cwd + echo $(pwd) - exit_code_5 echo $(echo 10 ; exit 2) && exit 5 - piped |