mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
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:
parent
b748c1845c
commit
fd9975c288
1 changed files with 1 additions and 1 deletions
|
@ -971,7 +971,7 @@ def _git_update(github_source: InstInfo, local_copy: PosixPath):
|
||||||
|
|
||||||
def get_temp_reckless_dir() -> PosixPath:
|
def get_temp_reckless_dir() -> PosixPath:
|
||||||
random_dir = 'reckless-{}'.format(str(hash(os.times()))[-9:])
|
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
|
return new_path
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue