diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-05-20 09:32:11 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-20 09:32:11 -0600 |
commit | c15ba8ce204aa58b7d8313e374081a48b7f3416d (patch) | |
tree | c31ed7a98157d93842fc80088c462f1abb5e5b2e /test | |
parent | 7673020a2ebce9490e46373a1b598e7c3ac3e4bf (diff) | |
download | liburing-c15ba8ce204aa58b7d8313e374081a48b7f3416d.tar.gz liburing-c15ba8ce204aa58b7d8313e374081a48b7f3416d.tar.bz2 |
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 <axboe@kernel.dk>
Diffstat (limited to 'test')
-rw-r--r-- | test/config | 1 | ||||
-rwxr-xr-x | test/runtests.sh | 4 |
2 files changed, 3 insertions, 2 deletions
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" |