Skip to content

Conversation

@smoser
Copy link
Contributor

@smoser smoser commented Nov 15, 2023

test: Fix the docker-clone make target to exit failure.

My expectation was that when make invoked the shell (sh) for
a line in a rule was that it did so with '-e'. That was an
incorrect assumption.

The make docker-clone target was basically doing:

for i in url1 url2 url3; do
    something $i; done

The failure of the last item in the list should cause the
command to exit failure, but failure of an earlier command would not.

The change here is just to move that shell code into a script in
tools/oci-copy and call it from there.

@smoser smoser changed the title test: debug failing docker-clone test: Fix the docker-clone make target to exit failure. Nov 15, 2023
@codecov
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8d233ed) 13.01% compared to head (b0bedb0) 13.01%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #551   +/-   ##
=======================================
  Coverage   13.01%   13.01%           
=======================================
  Files          40       40           
  Lines        6003     6003           
=======================================
  Hits          781      781           
  Misses       5094     5094           
  Partials      128      128           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

My expectation was that when make invoked the shell (sh) for
a line in a rule was that it did so with '-e'.  That was an
incorrect assumption.

The make docker-clone target was basically doing:

    for i in url1 url2 url3; do
        something $i; done

The failure of the *last* item in the list should cause the
command to exit failure, but failure of an earlier command would not.

The change here is just to move that shell code into a script in
tools/oci-copy and call it from there.

Signed-off-by: Scott Moser <smoser@brickies.net>
Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rchincha rchincha merged commit c81f395 into project-stacker:main Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants