Skip to content
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
7 changes: 7 additions & 0 deletions core/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ def _exec_run(self, tree, thing, result_dir):
if hasattr(thing, 'first_in_series'):
env["FIRST_IN_SERIES"] = str(int(thing.first_in_series))

if hasattr(thing, 'pw_series'):
pw_series = thing.pw_series
if pw_series['cover_letter']:
env["MSGID"] = str(pw_series['cover_letter']['msgid'])
elif pw_series['patches']:
env["MSGID"] = str(pw_series['patches'][0]['msgid'])

out, err = CMD.cmd_run(self.info["run"], include_stderr=True, cwd=tree.path,
pass_fds=[wfd], add_env=env)
except core.cmd.CmdError as e:
Expand Down
2 changes: 1 addition & 1 deletion docker/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LABEL name=nipa-build

RUN sudo dnf install -y \
clang llvm lld \
ruff pylint yamllint jsonschema shellcheck \
b4 ruff pylint yamllint jsonschema shellcheck \
dwarves libasan libasan-static glibc-devel.i686 \
rustc \
perl-Git lei \
Expand Down
20 changes: 20 additions & 0 deletions tests/series/diff/diff.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (c) 2026 Matthieu Baerts

if [ -z "${MSGID}" ]; then
echo "MSGID not set" >&"${DESC_FD}"
exit 0
fi

OUT="${RESULTS_DIR}/b4-diff.ansi"

# ignore errors, we just want to see the diff if available
b4 diff --color --output-diff "${OUT}" "${MSGID}" || true

if [ -s "${OUT}" ]; then
echo "Diff with the previous version in $(basename "${OUT}")" >&"${DESC_FD}"
else
echo "No diff available" >&"${DESC_FD}"
fi
3 changes: 3 additions & 0 deletions tests/series/diff/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"run": ["diff.sh"]
}
Loading