Skip to content

Commit d4e36ae

Browse files
committed
test: Update --tmpdir doc string to say directory must not exist
The error message given if passing an existing dir to --tmpdir is confusing so this makes it clear that the directory must not already exist
1 parent ba907f9 commit d4e36ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/test_framework/test_framework.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def parse_args(self):
163163
help="Don't stop bitcoinds after the test execution")
164164
parser.add_argument("--cachedir", dest="cachedir", default=os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + "/../../cache"),
165165
help="Directory for caching pregenerated datadirs (default: %(default)s)")
166-
parser.add_argument("--tmpdir", dest="tmpdir", help="Root directory for datadirs")
166+
parser.add_argument("--tmpdir", dest="tmpdir", help="Root directory for datadirs (must not exist)")
167167
parser.add_argument("-l", "--loglevel", dest="loglevel", default="INFO",
168168
help="log events at this level and higher to the console. Can be set to DEBUG, INFO, WARNING, ERROR or CRITICAL. Passing --loglevel DEBUG will output all logs to console. Note that logs at all levels are always written to the test_framework.log file in the temporary test directory.")
169169
parser.add_argument("--tracerpc", dest="trace_rpc", default=False, action="store_true",

0 commit comments

Comments
 (0)