summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
authorRuediger Meier2016-04-06 12:30:18 +0200
committerKarel Zak2016-04-13 12:29:16 +0200
commitc3f323cb2cb6076ac3a509fb240cf4d7b97199eb (patch)
tree573ea24978e1e53e7e8b6baf4051c6ad7742545b /tests/functions.sh
parenttests: test_md5 prints md5sum only (diff)
downloadkernel-qcow2-util-linux-c3f323cb2cb6076ac3a509fb240cf4d7b97199eb.tar.gz
kernel-qcow2-util-linux-c3f323cb2cb6076ac3a509fb240cf4d7b97199eb.tar.xz
kernel-qcow2-util-linux-c3f323cb2cb6076ac3a509fb240cf4d7b97199eb.zip
tests: don't depend on GNU md5sum
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index 5246605e0..fe7ce6d7b 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -460,7 +460,7 @@ function ts_cleanup_on_exit {
function ts_image_md5sum {
local img=${1:-"$TS_OUTDIR/${TS_TESTNAME}.img"}
- echo $(md5sum "$img" | awk '{printf $1}') $(basename "$img")
+ echo $("$TS_HELPER_MD5" < "$img") $(basename "$img")
}
function ts_image_init {