Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaudill committed Jul 18, 2024
1 parent 681a39c commit 2cd6149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion lib/modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ def modify_tree_make(src_img, cmds):
], meta))
return im.Tree(lark.Token('RULE', 'start'), [im.Tree(lark.Token('RULE','dockerfile'), df_children)], meta)

# FIXME: Combine with “modify_tree_make”?
def modify_tree_make_script(src_img, path):
"""Temporary(?) analog of “modify_tree_make” for the non-interactive version
of “modify” using a script. For the command line:
Expand Down
13 changes: 4 additions & 9 deletions test/build/55_cache.bats
Original file line number Diff line number Diff line change
Expand Up @@ -1606,12 +1606,12 @@ EOF
ch-image modify alpine:3.17 tmpimg "${BATS_TMPDIR}/script.sh"

blessed_out=$(cat <<EOF
* (tmpimg) RUN.S /ch/script.sh
* (tmpimg) RUN.S /bin/sh /ch/script.sh
* COPY ['${BATS_TMPDIR}/script.sh'] -> '/ch/script.sh'
| * RUN.S echo bar
| * RUN.S echo foo
| * SHELL ['/bin/sh', '-c']
|/
* SHELL ['/bin/sh', '-c']
* (alpine+3.17) PULL alpine:3.17
* (root) ROOT
EOF
Expand All @@ -1622,17 +1622,12 @@ EOF
[[ $status -eq 0 ]]
diff -u <(echo "$blessed_out") <(echo "$output" | treeonly)

ch-image build-cache --reset
ch-image pull alpine:3.17
printf 'echo hello\nexit\n' | ch-image modify -i alpine:3.17 tmpimg

blessed_out=$(cat <<EOF
* (tmpimg) MODIFY interactive
| * RUN.S /ch/script.sh
| * COPY ['${BATS_TMPDIR}/script.sh'] -> '/ch/script.sh'
| | * RUN.S echo bar
| | * RUN.S echo foo
| |/
| * SHELL ['/bin/sh', '-c']
|/
* (alpine+3.17) PULL alpine:3.17
* (root) ROOT
EOF
Expand Down

0 comments on commit 2cd6149

Please sign in to comment.