From c15ba8ce204aa58b7d8313e374081a48b7f3416d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 20 May 2020 09:32:11 -0600 Subject: test: use config.local for runtests.sh Add it to .gitignore as well. This makes it easier to have a local configuration that isn't overwritten by resetting the git tree, or pulling changes. Signed-off-by: Jens Axboe --- test/config | 1 + test/runtests.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/config b/test/config index fb66ee1..80a5f46 100644 --- a/test/config +++ b/test/config @@ -1,3 +1,4 @@ # Define raw test devices (or files) for test cases, if any +# Copy this to config.local, and uncomment + define test files # # TEST_FILES="/dev/nvme0n1p2 /data/file" diff --git a/test/runtests.sh b/test/runtests.sh index e998a12..0aebac0 100755 --- a/test/runtests.sh +++ b/test/runtests.sh @@ -14,8 +14,8 @@ fi TEST_DIR=$(dirname $0) TEST_FILES="" -if [ -f "$TEST_DIR/config" ]; then - . $TEST_DIR/config +if [ -f "$TEST_DIR/config.local" ]; then + . $TEST_DIR/config.local for dev in $TEST_FILES; do if [ ! -e "$dev" ]; then echo "Test file $dev not valid" -- cgit v1.2.3