mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-03-14 03:25:15 +01:00
test: fix sed error in basic tests
The error is easy to miss, because the test passes and stderr is not printed. But if you run basic tests in verbose mode (./basic --verbose), you get: sed: can't read notmuch-test: No such file or directory The issue is that sed command is given two files: notmuch-test and $TEST_DIRECTORY/notmuch-test. And there is no notmuch-test file in the current directory (test/tmp.basic/). The patch just removes the non-existing file from the sed command.
This commit is contained in:
parent
bad712e20f
commit
fea2c106ac
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ test_expect_code 2 'failure to clean up causes the test to fail' '
|
|||
|
||||
# Ensure that all tests are being run
|
||||
test_begin_subtest 'Ensure that all available tests will be run by notmuch-test'
|
||||
eval $(sed -n -e '/^TESTS="$/,/^"$/p' notmuch-test $TEST_DIRECTORY/notmuch-test)
|
||||
eval $(sed -n -e '/^TESTS="$/,/^"$/p' $TEST_DIRECTORY/notmuch-test)
|
||||
tests_in_suite=$(for i in $TESTS; do echo $i; done | sort)
|
||||
available=$(ls -1 $TEST_DIRECTORY/ | \
|
||||
sed -r -e "/^(aggregate-results.sh|Makefile|Makefile.local|notmuch-test)/d" \
|
||||
|
|
Loading…
Add table
Reference in a new issue