]> git.sur5r.net Git - bacula/bacula/commitdiff
Skip verify-data-test if not running Linux
authorKern Sibbald <kern@sibbald.com>
Sun, 2 Jul 2017 07:48:17 +0000 (09:48 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 2 Jul 2017 07:48:17 +0000 (09:48 +0200)
regress/tests/verify-data-test

index cfcfc3342d0a00f1f5fc9fd3e12d66be7c84a5f6..a040d71d9d7b4edb7881b1062100f2d58ecd2a03 100755 (executable)
@@ -11,6 +11,8 @@ TestName="verify-data-test"
 JobName=VerifyVol
 . scripts/functions
 
+require_linux
+
 cwd=`pwd`
 scripts/cleanup
 scripts/copy-test-confs
@@ -61,6 +63,12 @@ stop_bacula
 
 $bperl -e 'add_attribute("$conf/bacula-sd.conf", "BlockChecksum", "no", "Device")'
 
+#
+# NOTE!!!  sed is an ASCII file editor not a binary file editor
+#   Thus in general, the following sed will not work and is 
+#   not portable.  It is known to fail on FreeBSD, but *seems* to work
+#   on Linux.
+#
 # Introduce a volume error by modifying the some Volume data
 nbok=2
 if [ x$FORCE_DEDUP = xyes ]; then