Skip to content

Commit

Permalink
tasks: Test directory attachment
Browse files Browse the repository at this point in the history
This reproduces and validates
cockpit-project/bots#6042
  • Loading branch information
martinpitt committed Mar 11, 2024
1 parent 1b56efe commit 6a85654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cockpit-ci/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ set -eux

if [ -n "$TEST_ATTACHMENTS" ]; then
echo "heisenberg compensator at 99.8% efficiency" > "$TEST_ATTACHMENTS"/bogus.log
mkdir -p $TEST_ATTACHMENTS/data
echo "subdir-file" > $TEST_ATTACHMENTS/data/subdir-file.txt
fi
make check
2 changes: 2 additions & 0 deletions tasks/run-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ test_pr() {
if [ "${PR_REPO%/cockpituous}" != "$PR_REPO" ]; then
BOGUS_LOG=$($CURL ${LOG_URL%/log}/bogus.log)
assert_in 'heisenberg compensator' "$BOGUS_LOG"
BOGUS_SUBDIR_FILE=$($CURL ${LOG_URL%/log}/data/subdir-file.txt)
assert_in 'subdir-file' "$BOGUS_SUBDIR_FILE"
fi
}

Expand Down

0 comments on commit 6a85654

Please sign in to comment.