Fix upload_failure_logs.py
This commit is contained in:
parent
f8560ae38b
commit
179d4af164
|
@ -2,14 +2,14 @@
|
||||||
|
|
||||||
import tarfile
|
import tarfile
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from common import upload, OS_NAME, PLATFORM_TARGET, HOME
|
from common import upload, OS_NAME, COMPILE_CONFIG, HOME
|
||||||
|
|
||||||
ARCHIVE_NAME = Path(f"fail_log_{OS_NAME}_{PLATFORM_TARGET}.tar.gz")
|
ARCHIVE_NAME = Path(f"fail_log_{OS_NAME}_{COMPILE_CONFIG}.tar.gz")
|
||||||
|
|
||||||
|
|
||||||
files_to_archive = []
|
files_to_archive = []
|
||||||
files_to_archive += HOME.glob("BUILD_*")
|
files_to_archive += HOME.glob("BUILD_*")
|
||||||
files_to_archive += [HOME/"SOURCE", HOME/"LOGS", HOME/"TOOLCHAINS"]
|
files_to_archive += [HOME / "SOURCE", HOME / "LOGS", HOME / "TOOLCHAINS"]
|
||||||
|
|
||||||
with tarfile.open(ARCHIVE_NAME, "w:xz") as tar:
|
with tarfile.open(ARCHIVE_NAME, "w:xz") as tar:
|
||||||
for name in set(files_to_archive):
|
for name in set(files_to_archive):
|
||||||
|
|
Loading…
Reference in New Issue