Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bats: update git URLs #112

Merged
merged 2 commits into from
Aug 25, 2023
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
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)
Loading