Fix: Resolve hardcoded workspace path in synthetic test runner for CI compatibility
This commit is contained in:
parent
37c60f4f49
commit
d1cf59dca2
1 changed files with 4 additions and 2 deletions
|
|
@ -6,8 +6,10 @@ import numpy as np
|
||||||
from generate_synthetic_data import generate_synthetic_grid
|
from generate_synthetic_data import generate_synthetic_grid
|
||||||
|
|
||||||
def run_synthetic_regression_test():
|
def run_synthetic_regression_test():
|
||||||
workspace_dir = "/home/ignis/workspace/incomp-flame-post"
|
# Resolve paths dynamically relative to this script's location
|
||||||
code_dir = os.path.join(workspace_dir, "code")
|
code_gen_dir = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
code_dir = os.path.dirname(code_gen_dir)
|
||||||
|
workspace_dir = os.path.dirname(code_dir)
|
||||||
test_run_dir = os.path.join(workspace_dir, "scratch", "synthetic_test_run")
|
test_run_dir = os.path.join(workspace_dir, "scratch", "synthetic_test_run")
|
||||||
|
|
||||||
# 1. Create a clean testing directory in workspace
|
# 1. Create a clean testing directory in workspace
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue