]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: check for TS_HELPER_SYSINFO in fincore test
authorKarel Zak <kzak@redhat.com>
Tue, 23 May 2017 10:10:15 +0000 (12:10 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 23 May 2017 10:10:15 +0000 (12:10 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/fincore/count

index ac58850ff10efbc31dc2ab500f9ad300615037da..7a1c5d42627f13884d65e8de6f294c84cc8eef68 100755 (executable)
@@ -1,5 +1,13 @@
 #!/bin/bash
 
+TS_TOPDIR="${0%/*}/../.."
+TS_DESC="count file contents in core"
+
+. $TS_TOPDIR/functions.sh
+ts_init "$*"
+
+ts_check_test_command "$TS_HELPER_SYSINFO"
+
 function header
 {
     echo "[" "$1" "]"
@@ -87,11 +95,6 @@ function run_dd_dd_test
     footer "$?"
 }
 
-TS_TOPDIR="${0%/*}/../.."
-TS_DESC="count file contents in core"
-
-. $TS_TOPDIR/functions.sh
-ts_init "$*"
 
 PAGE_SIZE=$($TS_HELPER_SYSINFO pagesize)
 WINDOW_SIZE=$(( 32 * 1024 * PAGE_SIZE ))