Skip to content

Commit

Permalink
Rework to avoid specifying default build_dir
Browse files Browse the repository at this point in the history
The script now must be run from the main coek
build directory.
  • Loading branch information
whart222 committed May 28, 2024
1 parent 48efeae commit b65caab
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions test/aml_comparisons/scripts/run
Original file line number Diff line number Diff line change
Expand Up @@ -337,22 +337,10 @@ if __name__ == "__main__":
else:
ntrials = 1

build_dir = None
if os.path.exists("coek/coek_writer"):
build_dir = "."
elif os.path.exists(
os.path.join(currdir, "../../../_build/test/aml_comparisons/coek/coek_writer")
):
build_dir = os.path.join(currdir, "../../../_build")
if build_dir is None:
print("Cannot find Coek build directory")
print(
os.path.join(
currdir, "../../../_build/test/aml_comparisons/coek/coek_writer"
)
)
if not os.path.exists("test/aml_comparisons/coek/coek_writer"):
print("Must execute 'run' in the coek build directory")
sys.exit(1)
build_dir = os.path.abspath(build_dir)
build_dir = os.path.abspath(".")

errors = []

Expand Down

0 comments on commit b65caab

Please sign in to comment.