Skip to content

Commit

Permalink
Merge pull request #112 from tonistiigi/bats-git-urls
Browse files Browse the repository at this point in the history
bats: update git URLs
  • Loading branch information
crazy-max authored Aug 25, 2023
2 parents 279ab38 + 5cad199 commit 97118f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions util/bats-assert/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM --platform=$BUILDPLATFORM alpine AS build
RUN apk add --no-cache git
WORKDIR /work
RUN git clone --bare git://github.com/ztombol/bats-support && \
RUN git clone --bare https://github.com/ztombol/bats-support && \
mkdir -p /out/bats-support && cd /out/bats-support && \
git --git-dir=/work/bats-support.git --work-tree=. checkout 004e707638eedd62e0481e8cdc9223ad471f12ee -- src load.bash LICENSE

RUN git clone --bare git://github.com/ztombol/bats-assert && \
RUN git clone --bare https://github.com/ztombol/bats-assert && \
mkdir -p /out/bats-assert && cd /out/bats-assert && \
git --git-dir=/work/bats-assert.git --work-tree=. checkout 9f88b4207da750093baabc4e3f41bf68f0dd3630 -- src load.bash LICENSE

Expand Down
13 changes: 9 additions & 4 deletions util/bats-assert/test.bats.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ not ok 1 failing
# (from function `assert_equal' in file bats-assert/src/assert.bash, line 91,
# in test file test.bats, line 6)
# `assert_equal "foo" "bar"' failed
#
#
# -- values do not equal --
# expected : bar
# actual : foo
# --
#
#
not ok 2 run-no-success
# (in test file test.bats, line 10)
# `run echo "start" && false' failed
Expand All @@ -18,9 +18,14 @@ not ok 5 run-fail
# (from function `assert_output' in file bats-assert/src/assert.bash, line 239,
# in test file test.bats, line 28)
# `assert_output "bcd"' failed
#
#
# -- output differs --
# expected : bcd
# actual : abc
# --
#
#

The following warnings were encountered during tests:
BW01: `run`'s command `./foobar` exited with code 127, indicating 'Command not found'. Use run's return code checks, e.g. `run -127`, to fix this message.
(from function `run' in file /usr/lib/bats-core/test_functions.bash, line 297,
in test file test.bats, line 15)

0 comments on commit 97118f5

Please sign in to comment.