Skip to content

Commit

Permalink
test: Fix skipcpio path for installed binary
Browse files Browse the repository at this point in the history
The `skipcpio` binary is installed in `${PKGLIBDIR}/skipcpio`.

Signed-off-by: Benjamin Drung <[email protected]>
  • Loading branch information
bdrung committed Aug 16, 2023
1 parent ba87325 commit 53a778b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/TEST-62-SKIPCPIO/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ skipcpio_simple() {
2
EOF

"$basedir"/src/skipcpio/skipcpio "$CPIO_TESTDIR/skipcpio_simple.cpio" \
if [ "$PKGLIBDIR" = "$basedir" ]; then
skipcpio_path="${PKGLIBDIR}/src/skipcpio"
else
skipcpio_path="${PKGLIBDIR}"
fi
"$skipcpio_path"/skipcpio "$CPIO_TESTDIR/skipcpio_simple.cpio" \
| cpio -i --list > "$CPIO_TESTDIR/skipcpio_simple.list"
cat << EOF | diff - "$CPIO_TESTDIR/skipcpio_simple.list"
.
Expand Down

0 comments on commit 53a778b

Please sign in to comment.