aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2017-09-25 23:38:37 +0300
committerDavid Bremner <david@tethera.net>2017-10-20 20:50:03 -0300
commit3c2378039613cf2fcc5b1f4b13a016ab3b46e1b6 (patch)
treecaf5b4327e801f78a243952afbb7086717f04517
parent1ab72b13cdbea40fbe6781b67f162f45215d4e75 (diff)
test: use source and build paths in T480-hex-escaping.sh
Make a distinction between source and build directories.
-rwxr-xr-xtest/T480-hex-escaping.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/T480-hex-escaping.sh b/test/T480-hex-escaping.sh
index 28564c3c..2c5bbb63 100755
--- a/test/T480-hex-escaping.sh
+++ b/test/T480-hex-escaping.sh
@@ -3,7 +3,7 @@ test_description="hex encoding and decoding"
. $(dirname "$0")/test-lib.sh || exit 1
test_begin_subtest "round trip"
-find $TEST_DIRECTORY/corpora/default -type f -print | sort | xargs cat > EXPECTED
+find $NOTMUCH_SRCDIR/test/corpora/default -type f -print | sort | xargs cat > EXPECTED
$TEST_DIRECTORY/hex-xcode --direction=encode < EXPECTED | $TEST_DIRECTORY/hex-xcode --direction=decode > OUTPUT
test_expect_equal_file EXPECTED OUTPUT
@@ -25,7 +25,7 @@ $TEST_DIRECTORY/hex-xcode --direction=decode < EXPECTED.$test_count |\
test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count
test_begin_subtest "round trip (in-place)"
-find $TEST_DIRECTORY/corpora/default -type f -print | sort | xargs cat > EXPECTED
+find $NOTMUCH_SRCDIR/test/corpora/default -type f -print | sort | xargs cat > EXPECTED
$TEST_DIRECTORY/hex-xcode --in-place --direction=encode < EXPECTED |\
$TEST_DIRECTORY/hex-xcode --in-place --direction=decode > OUTPUT
test_expect_equal_file EXPECTED OUTPUT