Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
M4rtinK committed Feb 25, 2025
1 parent db91afc commit 473b8c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,13 @@ container-rpm-test:
$(RPM_NAME):$(CI_TAG) \
sh -exc ' \
/run-build-and-arg make run-rpm-tests-only; \
dnf install -y /tmp/anaconda/result/build/01-rpm-build/*.rpm; \
dnf install -v -y /tmp/anaconda/result/build/01-rpm-build/*.rpm; \
cd /tmp/anaconda; \
rpmlint *.spec.in result/build/01-rpm-build/*.rpm --config rpmlint.toml'
rpmlint *.spec.in result/build/01-rpm-build/*.rpm --config rpmlint.toml; \
echo "AAA: MAKEFILE RPM TEST RUN - DONE"; \
echo "AAA: MAKEFILE RPM TEST RUN - STTY OUTPUT"; \
stty -a; \
echo "AAA: MAKEFILE RPM TEST RUN - STTY OUTPUT DONE";'

container-rpms:
@./scripts/testing/check-container-age.sh "$(RPM_NAME):$(CI_TAG)"
Expand Down
7 changes: 7 additions & 0 deletions dockerfile/anaconda-ci/run-build-and-arg
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@ sed -i 's/ .. %{undefined centos}//' ./anaconda.spec.in

# always copy the results back to the host
copy_logs() {
echo "AAA: copy-logs running"

mkdir -p /anaconda/test-logs/
# clean up from previous run
rm -rf /anaconda/test-logs/*
# copy logs and coverage reports
find \( -name '*.log' -o -name 'coverage*.xml' \) -exec cp '{}' /anaconda/test-logs/ \;
echo "AAA: copy DNF log"
echo "AAA: stty output"
stty -a
echo "AAA: stty output - done"
cp -r /var/log/* /anaconda/test-logs/
}
trap copy_logs EXIT INT QUIT PIPE

Expand Down

0 comments on commit 473b8c8

Please sign in to comment.