Skip to content

Commit

Permalink
address review changes of cjdc
Browse files Browse the repository at this point in the history
  • Loading branch information
linostar committed Jun 6, 2024
1 parent 8c7b5bb commit 16e6e71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tests/spread/foreign/big/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ execute: |
docker images
# Check the rock's output
id=$(docker run -d big:latest --verbose)
grep_docker_log "$id" "/tmp"
docker rm -f "$id"
docker run --rm big:latest --verbose | MATCH "/tmp"
############################################################################################
# test ownership: "newfiles" and "a.txt" are owned by uid 9999, "b.txt" is owned by uid 3333
Expand Down
3 changes: 2 additions & 1 deletion tests/spread/rockcraft/entrypoint-service/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ execute: |
test "$(docker inspect "$id" -f '{{json .Config.Cmd}}')" = '["foo"]'
docker logs "$id" 2>&1 | grep "foo"
docker rm -f "$id"
id=$(docker run -d entrypoint-service-test bar)
id=$(docker run -d entrypoint-service-test bar \; --verbose)
test "$(docker inspect "$id" -f '{{json .Config.Entrypoint}}')" = '["/bin/pebble","enter","--args","test-service","--verbose"]'
test "$(docker inspect "$id" -f '{{json .Config.Cmd}}')" = '["bar"]'
docker logs "$id" 2>&1 | grep "bar"
docker rm -f "$id"

0 comments on commit 16e6e71

Please sign in to comment.