diff --git a/acceptance/bundle/exec/basic/output.txt b/acceptance/bundle/exec/basic/output.txt index c9a651aed..4c8668232 100644 --- a/acceptance/bundle/exec/basic/output.txt +++ b/acceptance/bundle/exec/basic/output.txt @@ -2,9 +2,6 @@ >>> [CLI] bundle exec -- echo hello, world hello, world ->>> [CLI] bundle exec -- pwd -[TMPDIR] - >>> [CLI] bundle exec -- --help Error: starting "--help" failed: exec: "--help": executable file not found in $PATH diff --git a/acceptance/bundle/exec/basic/script b/acceptance/bundle/exec/basic/script index 9d1a281c2..285023492 100644 --- a/acceptance/bundle/exec/basic/script +++ b/acceptance/bundle/exec/basic/script @@ -1,7 +1,5 @@ trace $CLI bundle exec -- echo "hello, world" -trace $CLI bundle exec -- pwd - # The CLI should not parse the --help flag and should try to run it as an executable # instead. trace $CLI bundle exec -- --help diff --git a/acceptance/bundle/exec/cwd/output.txt b/acceptance/bundle/exec/cwd/output.txt index e6496afab..928bea82d 100644 --- a/acceptance/bundle/exec/cwd/output.txt +++ b/acceptance/bundle/exec/cwd/output.txt @@ -1,8 +1,8 @@ >>> cd a/b/c ->>> pwd +>>> python3 -c import os; print(os.getcwd()) [TMPDIR]/a/b/c ->>> [CLI] bundle exec -- pwd +>>> [CLI] bundle exec -- python3 -c import os; print(os.getcwd()) [TMPDIR] diff --git a/acceptance/bundle/exec/cwd/script b/acceptance/bundle/exec/cwd/script index 73a0966d3..f5e866d06 100644 --- a/acceptance/bundle/exec/cwd/script +++ b/acceptance/bundle/exec/cwd/script @@ -1,6 +1,6 @@ trace cd a/b/c -trace pwd +trace python3 -c 'import os; print(os.getcwd())' # Scripts that bundle exec executes should run from the bundle root. -trace $CLI bundle exec -- pwd +trace $CLI bundle exec -- python3 -c 'import os; print(os.getcwd())' diff --git a/acceptance/bundle/exec/no-auth/output.txt b/acceptance/bundle/exec/no-auth/output.txt index fce8e3f61..be94dae36 100644 --- a/acceptance/bundle/exec/no-auth/output.txt +++ b/acceptance/bundle/exec/no-auth/output.txt @@ -2,5 +2,5 @@ >>> [CLI] bundle exec -- echo hello hello ->>> [CLI] bundle exec -- pwd +>>> [CLI] bundle exec -- python3 -c import os; print(os.getcwd()) [TMPDIR] diff --git a/acceptance/bundle/exec/no-auth/script b/acceptance/bundle/exec/no-auth/script index a1758ce99..c6b9c6bfe 100644 --- a/acceptance/bundle/exec/no-auth/script +++ b/acceptance/bundle/exec/no-auth/script @@ -4,4 +4,4 @@ unset DATABRICKS_TOKEN # Confirm that bundle exec works for commands that do not require authentication, # even if authentication is not provided. trace $CLI bundle exec -- echo hello -trace $CLI bundle exec -- pwd +trace $CLI bundle exec -- python3 -c 'import os; print(os.getcwd())'