This commit is contained in:
Shreyas Goenka 2025-03-05 11:12:05 +01:00
parent 4ef33dc2b4
commit 996b58a135
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
6 changed files with 6 additions and 11 deletions

View File

@ -2,9 +2,6 @@
>>> [CLI] bundle exec -- echo hello, world >>> [CLI] bundle exec -- echo hello, world
hello, world hello, world
>>> [CLI] bundle exec -- pwd
[TMPDIR]
>>> [CLI] bundle exec -- --help >>> [CLI] bundle exec -- --help
Error: starting "--help" failed: exec: "--help": executable file not found in $PATH Error: starting "--help" failed: exec: "--help": executable file not found in $PATH

View File

@ -1,7 +1,5 @@
trace $CLI bundle exec -- echo "hello, world" 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 # The CLI should not parse the --help flag and should try to run it as an executable
# instead. # instead.
trace $CLI bundle exec -- --help trace $CLI bundle exec -- --help

View File

@ -1,8 +1,8 @@
>>> cd a/b/c >>> cd a/b/c
>>> pwd >>> python3 -c import os; print(os.getcwd())
[TMPDIR]/a/b/c [TMPDIR]/a/b/c
>>> [CLI] bundle exec -- pwd >>> [CLI] bundle exec -- python3 -c import os; print(os.getcwd())
[TMPDIR] [TMPDIR]

View File

@ -1,6 +1,6 @@
trace cd a/b/c 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. # 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())'

View File

@ -2,5 +2,5 @@
>>> [CLI] bundle exec -- echo hello >>> [CLI] bundle exec -- echo hello
hello hello
>>> [CLI] bundle exec -- pwd >>> [CLI] bundle exec -- python3 -c import os; print(os.getcwd())
[TMPDIR] [TMPDIR]

View File

@ -4,4 +4,4 @@ unset DATABRICKS_TOKEN
# Confirm that bundle exec works for commands that do not require authentication, # Confirm that bundle exec works for commands that do not require authentication,
# even if authentication is not provided. # even if authentication is not provided.
trace $CLI bundle exec -- echo hello trace $CLI bundle exec -- echo hello
trace $CLI bundle exec -- pwd trace $CLI bundle exec -- python3 -c 'import os; print(os.getcwd())'