diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-27 19:47:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-27 19:47:07 +0200 |
commit | 6ca6ca48898750dd55cad13c88a9c1dfd7fdaad5 (patch) | |
tree | 7e21eb75ee69713e747dd38ebd8a2545fda0ae2b /src/testdir/runtest.vim | |
parent | 6d585f4c5c8d120f768dd61bfd32f6e57ad562a7 (diff) |
patch 8.2.1304: debug backtrace isn't tested muchv8.2.1304
Problem: Debug backtrace isn't tested much.
Solution: Add more specific tests. (Ben Jackson, closes #6540)
Diffstat (limited to 'src/testdir/runtest.vim')
-rw-r--r-- | src/testdir/runtest.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim index 3cf2a506c9..6cc7202dc7 100644 --- a/src/testdir/runtest.vim +++ b/src/testdir/runtest.vim @@ -13,6 +13,9 @@ " For csh: " setenv TEST_FILTER Test_channel " +" While working on a test you can make $TEST_NO_RETRY non-empty to not retry: +" export TEST_NO_RETRY=yes +" " To ignore failure for tests that are known to fail in a certain environment, " set $TEST_MAY_FAIL to a comma separated list of function names. E.g. for " sh/bash: @@ -440,9 +443,11 @@ for g:testfunc in sort(s:tests) call RunTheTest(g:testfunc) " Repeat a flaky test. Give up when: + " - $TEST_NO_RETRY is not empty " - it fails again with the same message " - it fails five times (with a different message) if len(v:errors) > 0 + \ $TEST_NO_RETRY == '' \ && (index(s:flaky_tests, g:testfunc) >= 0 \ || g:test_is_flaky) while 1 |