From a12f0e013a4393435b7fc45c65a6ba3761ae8ee0 Mon Sep 17 00:00:00 2001 From: Sven Hoexter Date: Wed, 14 Aug 2024 09:47:25 +0200 Subject: [PATCH] deabian/tests: explicitly export PATH env variable including /usr/sbin to make sure fsck.exfat can be found when running as non-root user. --- debian/changelog | 8 ++++++++ debian/tests/create-files | 2 ++ debian/tests/fsck | 2 ++ 3 files changed, 12 insertions(+) diff --git a/debian/changelog b/debian/changelog index 51dd1c6..95e149a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +exfatprogs (1.2.5-2) UNRELEASED; urgency=medium + + * deabian/tests: explicitly export PATH env variable including + /usr/sbin to make sure fsck.exfat can be found when + running as non-root user. + + -- Sven Hoexter Wed, 14 Aug 2024 09:44:45 +0200 + exfatprogs (1.2.5-1) unstable; urgency=medium * New upstream release. diff --git a/debian/tests/create-files b/debian/tests/create-files index d7e89d6..67e8ee3 100644 --- a/debian/tests/create-files +++ b/debian/tests/create-files @@ -1,5 +1,7 @@ #!/bin/bash +export PATH="/usr/sbin:$PATH" + # Original source: # https://github.com/exfatprogs/exfatprogs/blob/1.2.4/.github/workflows/c-cpp.yml#L37 diff --git a/debian/tests/fsck b/debian/tests/fsck index bbb998f..2b27cc6 100755 --- a/debian/tests/fsck +++ b/debian/tests/fsck @@ -1,5 +1,7 @@ #!/bin/bash +export PATH="/usr/sbin:$PATH" + set -e export TESTDIR="${AUTOPKGTEST_TMP}/fsck_tests" -- 2.39.5