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

Move junkfile to ${TESTDIR} directory #1995

Merged
merged 1 commit into from
Jul 2, 2024
Merged
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
8 changes: 4 additions & 4 deletions tests/apply-junk.bats
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ function applyjunk_main() {
storage create-layer --id layer-${compressed}

echo [[${compressed} /etc/os-release]]
if ! ${compressed} < /etc/os-release > junkfile ; then
if ! ${compressed} < /etc/os-release > ${TESTDIR}/junkfile ; then
skip "error running ${compressed}"
fi
run storage apply-diff --file junkfile layer-${compressed}
run storage apply-diff --file ${TESTDIR}/junkfile layer-${compressed}
echo "$output"
[[ "$status" -ne 0 ]]
[[ "$output" =~ "invalid tar header" ]] || [[ "$output" =~ "unexpected EOF" ]]

echo [[${compressed}]]
echo "sorry, not even enough info for a tar header here" | ${compressed} > junkfile
run storage apply-diff --file junkfile layer-${compressed}
echo "sorry, not even enough info for a tar header here" | ${compressed} > ${TESTDIR}/junkfile
run storage apply-diff --file ${TESTDIR}/junkfile layer-${compressed}
echo "$output"
[[ "$status" -ne 0 ]]
[[ "$output" =~ "unexpected EOF" ]]
Expand Down