Skip to content

Commit b65caab

Browse files
committed
Rework to avoid specifying default build_dir
The script now must be run from the main coek build directory.
1 parent 48efeae commit b65caab

File tree

1 file changed

+3
-15
lines changed
  • test/aml_comparisons/scripts

1 file changed

+3
-15
lines changed

Diff for: test/aml_comparisons/scripts/run

+3-15
Original file line numberDiff line numberDiff line change
@@ -337,22 +337,10 @@ if __name__ == "__main__":
337337
else:
338338
ntrials = 1
339339

340-
build_dir = None
341-
if os.path.exists("coek/coek_writer"):
342-
build_dir = "."
343-
elif os.path.exists(
344-
os.path.join(currdir, "../../../_build/test/aml_comparisons/coek/coek_writer")
345-
):
346-
build_dir = os.path.join(currdir, "../../../_build")
347-
if build_dir is None:
348-
print("Cannot find Coek build directory")
349-
print(
350-
os.path.join(
351-
currdir, "../../../_build/test/aml_comparisons/coek/coek_writer"
352-
)
353-
)
340+
if not os.path.exists("test/aml_comparisons/coek/coek_writer"):
341+
print("Must execute 'run' in the coek build directory")
354342
sys.exit(1)
355-
build_dir = os.path.abspath(build_dir)
343+
build_dir = os.path.abspath(".")
356344

357345
errors = []
358346

0 commit comments

Comments
 (0)