chore: run extract_machine_info.py before running the benchmark target, fix missing MACHINE_NAME variable exception

This commit is contained in:
Umut
2021-09-27 13:28:35 +03:00
parent 3408bba1ed
commit ad95aba053
3 changed files with 7 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ export LD_PRELOAD=/compiler/build/lib/Runtime/libZamalangRuntime.so
initial_log=logs/$(date -u --iso-8601=seconds).log
mkdir -p logs
make -s benchmark > "$initial_log"
poetry run python script/progress_tracker_utils/measure.py benchmarks > "$initial_log"
final_log=logs/$(date -u --iso-8601=seconds).log

View File

@@ -30,9 +30,10 @@ def main():
os_value = f"{platform.system()} {platform.release()}"
properties.append(["OS", os_value])
name = os.getenv("MACHINE_NAME").strip()
name = os.getenv("MACHINE_NAME")
if name is None:
name = platform.node().strip()
name = platform.node()
name = name.strip()
id_ = name.lower()
id_ = id_.replace(" ", "-")