mirror of https://github.com/databricks/cli.git
fix pwd
This commit is contained in:
parent
4ef33dc2b4
commit
996b58a135
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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]
|
||||||
|
|
|
@ -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())'
|
||||||
|
|
|
@ -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]
|
||||||
|
|
|
@ -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())'
|
||||||
|
|
Loading…
Reference in New Issue