Skip to content

Commit 2198f79

Browse files
committed
Add an argparse abbreviated mode to --failfast
Short options should only be a single character. If not, they can't be concatenated in a single "-word" (from review by luke-jr). F is chosen instead of f, because f could be reserved to the nested wallet_hd.py (test_framework/test_framework.py) arguments parser.
1 parent 35a31d5 commit 2198f79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def main():
344344
parser.add_argument('--keepcache', '-k', action='store_true', help='the default behavior is to flush the cache directory on startup. --keepcache retains the cache from the previous testrun.')
345345
parser.add_argument('--quiet', '-q', action='store_true', help='only print dots, results summary and failure logs')
346346
parser.add_argument('--tmpdirprefix', '-t', default=tempfile.gettempdir(), help="Root directory for datadirs")
347-
parser.add_argument('--failfast', action='store_true', help='stop execution after the first test failure')
347+
parser.add_argument('--failfast', '-F', action='store_true', help='stop execution after the first test failure')
348348
parser.add_argument('--filter', help='filter scripts to run by regular expression')
349349

350350
args, unknown_args = parser.parse_known_args()

0 commit comments

Comments
 (0)