reckless: don't use time-based directories.

This always fails on my test machine, which runs many tests in parallel.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2024-06-24 14:33:03 +09:30
parent b748c1845c
commit fd9975c288

View file

@ -971,7 +971,7 @@ def _git_update(github_source: InstInfo, local_copy: PosixPath):
def get_temp_reckless_dir() -> PosixPath:
random_dir = 'reckless-{}'.format(str(hash(os.times()))[-9:])
new_path = Path(tempfile.gettempdir()) / random_dir
new_path = Path(tempfile.mkdtemp(prefix=random_dir))
return new_path