Skip to content

Commit 2d935b6

Browse files
authored
acc: Minor fixes in script in restricted-execution (#3126)
- The second summary command does not return json, so passing it to jq is confusing (jq also does not fail on empty input). - Use musterr to show that error is intentional.
1 parent c87224b commit 2d935b6

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

acceptance/bundle/python/restricted-execution/output.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
value_from_env
1414

1515
=== With DATABRICKS_BUNDLE_RESTRICTED_CODE_EXECUTION=1, no envs are accessible
16-
>>> errcode uv run [UV_ARGS] -q [CLI] bundle summary
16+
>>> musterr uv run [UV_ARGS] -q [CLI] bundle summary
1717
Error: Running Python code is not allowed when DATABRICKS_BUNDLE_RESTRICTED_CODE_EXECUTION is set
1818

19-
Exit code: 1
19+
Exit code (musterr): 1
20+
21+
>>> musterr cat envs.txt
2022
cat: envs.txt: No such file or directory
2123

22-
Exit code: 1
24+
Exit code (musterr): 1

acceptance/bundle/python/restricted-execution/script

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ rm -rf envs.txt
1010

1111
export DATABRICKS_BUNDLE_RESTRICTED_CODE_EXECUTION=1
1212
title "With DATABRICKS_BUNDLE_RESTRICTED_CODE_EXECUTION=1, no envs are accessible"
13-
trace errcode uv run $UV_ARGS -q $CLI bundle summary | jq '.experimental'
14-
errcode cat envs.txt
13+
trace musterr uv run $UV_ARGS -q $CLI bundle summary
14+
trace musterr cat envs.txt
1515

1616
rm -fr .databricks __pycache__

0 commit comments

Comments
 (0)