diff -Nru rust-parsec-client-0.15.0/debian/changelog rust-parsec-client-0.15.0/debian/changelog --- rust-parsec-client-0.15.0/debian/changelog 2023-06-29 09:12:25.000000000 +0000 +++ rust-parsec-client-0.15.0/debian/changelog 2023-07-11 10:20:14.000000000 +0000 @@ -1,3 +1,10 @@ +rust-parsec-client (0.15.0-2) unstable; urgency=medium + + * d/tests/run.sh: do not fail if RUNDIR already exists and other minor + improvements. + + -- Emanuele Rocca Tue, 11 Jul 2023 12:20:14 +0200 + rust-parsec-client (0.15.0-1) unstable; urgency=medium * Package parsec-client 0.15.0 from crates.io using debcargo 2.6.0 diff -Nru rust-parsec-client-0.15.0/debian/tests/run.sh rust-parsec-client-0.15.0/debian/tests/run.sh --- rust-parsec-client-0.15.0/debian/tests/run.sh 2023-06-29 09:12:25.000000000 +0000 +++ rust-parsec-client-0.15.0/debian/tests/run.sh 2023-07-11 10:20:14.000000000 +0000 @@ -2,18 +2,22 @@ set -ex +RUNDIR="/run/parsec" + function cleanup { - kill $(cat /run/parsec/parsec.pid) - rm -r /run/parsec + if [ -f "${RUNDIR}/parsec.pid" ]; then + kill "$(cat ${RUNDIR}/parsec.pid)" + fi + rm -r $RUNDIR } trap cleanup EXIT -mkdir /run/parsec +mkdir -p ${RUNDIR} parsec -c debian/tests/config.toml & -echo $! > /run/parsec/parsec.pid +echo $! > ${RUNDIR}/parsec.pid sleep 3 -/usr/share/cargo/bin/cargo-auto-test $@ +/usr/share/cargo/bin/cargo-auto-test "$@"