diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-05-19 11:08:51 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-05-21 07:48:06 -0400 |
commit | fad798be76dd5e330463c837fda768477d536078 (patch) | |
tree | e625cfdc467873959123dc7aad0f96a2f5f2c17c | |
parent | faf1c3cc58d14f86ba5364e6ee5c8ef29cac2e26 (diff) |
test: Default --previous-releases to false if dir is empty
-rwxr-xr-x | test/functional/test_framework/test_framework.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py index 45bca63c94..716fa1d845 100755 --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -156,7 +156,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass): parser.add_argument("--portseed", dest="port_seed", default=os.getpid(), type=int, help="The seed to use for assigning port numbers (default: current process id)") parser.add_argument("--previous-releases", dest="prev_releases", action="store_true", - default=os.path.isdir(previous_releases_path), + default=os.path.isdir(previous_releases_path) and bool(os.listdir(previous_releases_path)), help="Force test of previous releases (default: %(default)s)") parser.add_argument("--coveragedir", dest="coveragedir", help="Write tested RPC commands into this directory") |