Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions acceptance/bundle/state/force_pull_commands/out.test.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions acceptance/bundle/state/force_pull_commands/script
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,26 @@ rm -f out.requests.txt
title "Modify PATH so that real open is not run"
export PATH=.:$PATH

# touch out.requests.txt before each print_requests.py call: the commands without
# --force-pull make zero HTTP requests, so the file is never created and
# print_requests.py would otherwise exit with "File not found".

title "bundle summary without --force-pull: no remote state read\n"
trace $CLI bundle summary > /dev/null
touch out.requests.txt
print_requests.py --get //workspace-files/

title "bundle summary --force-pull: remote state read\n"
trace $CLI bundle summary --force-pull > /dev/null
touch out.requests.txt
print_requests.py --get //workspace-files/

title "bundle open without --force-pull: no remote state read\n"
musterr trace $CLI bundle open foo > /dev/null
touch out.requests.txt
print_requests.py --get //workspace-files/

title "bundle open --force-pull: remote state read\n"
musterr trace $CLI bundle open foo --force-pull > /dev/null
touch out.requests.txt
print_requests.py --get //workspace-files/
Loading