Pythons os.getenv() returns None by default when a key isn't found. So if this test is run locally and you haven't set TEST_PREVIOUS_RELEASES or previous release binaries aren't available, it will always fail.
Remaining jobs: [wallet_upgradewallet.py]
1/1 - wallet_upgradewallet.py failed, Duration: 0 s
stdout:
2020-05-07T03:24:36.506000Z TestFramework (INFO): Initializing test directory /var/folders/z2/cn877pxd3czdfh47mfkmbwgm0000gn/T/test_runner_₿_🏃_20200507_112436/wallet_upgradewallet_0
2020-05-07T03:24:36.514000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
File "bitcoin/test/functional/test_framework/test_framework.py", line 471, in start_nodes
node.start(extra_args[i], *args, **kwargs)
File "bitcoin/test/functional/test_framework/test_node.py", line 205, in start
self.process = subprocess.Popen(self.args + extra_args, env=subp_env, stdout=stdout, stderr=stderr, cwd=cwd, **kwargs)
File "/Users/x/.pyenv/versions/3.5.6/lib/python3.5/subprocess.py", line 676, in __init__
restore_signals, start_new_session)
File "/Users/x/.pyenv/versions/3.5.6/lib/python3.5/subprocess.py", line 1289, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'bitcoin/releases/v0.16.3/bin/bitcoind'
During handling of the above exception, another exception occurred: