[Reproducible-commits] [disorderfs] 02/03: tests/common: Factor out utility to get variations from mount target.
Chris Lamb
chris at chris-lamb.co.uk
Thu Aug 25 14:21:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository disorderfs.
commit 5bb2bbe5ceb259c43e5510e4e591940568042954
Author: Chris Lamb <lamby at debian.org>
Date: Thu Aug 25 15:12:40 2016 +0100
tests/common: Factor out utility to get variations from mount target.
---
tests/common | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/common b/tests/common
index 013c998..17f4f61 100644
--- a/tests/common
+++ b/tests/common
@@ -10,13 +10,17 @@ Unmount () {
fusermount -u target/ 2>/dev/null && rm -rf target/
}
+Get_entries () {
+ find target -type f -printf %f
+}
+
Fail () {
echo "E: ${*}"
exit 1
}
Expect () {
- ENTRIES="$(find target -type f -printf %f)"
+ ENTRIES="$(Get_entries)"
EXPECTED="${1}"
if [ "${ENTRIES}" != "${EXPECTED}" ]
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/disorderfs.git
More information about the Reproducible-commits
mailing list