diff --git a/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.openfpga b/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.openfpga index ea3aa90b8..1e9e3f79c 100644 --- a/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.openfpga +++ b/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.openfpga @@ -1,6 +1,6 @@ # Majority of the content refer to fix_device_example_script.openfpga -ext_exec --command "python3 ${OPENFPGA_EXT_EXEC_PYTHON_SCRIPT} run_golden" +ext_exec --command "python3 ${OPENFPGA_EXT_EXEC_PYTHON_SCRIPT} run_golden ${OPENFPGA_PATH}" ext_exec --command "python3 ${OPENFPGA_EXT_EXEC_PYTHON_SCRIPT} generate_testcase" diff --git a/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.py b/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.py index 07d96a7da..2997bb5d6 100644 --- a/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.py +++ b/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.py @@ -49,7 +49,8 @@ def read_bitstream_annotation_xml(file) : if sys.argv[1] == "run_golden" : - openfpga_exe = os.path.abspath("../../../../../../../../../build/openfpga/openfpga") + assert len(sys.argv) >= 3 + openfpga_exe = os.path.abspath("%s/build/openfpga/openfpga" % sys.argv[2]) assert os.path.exists(openfpga_exe) shutil.rmtree("golden", ignore_errors=True) os.mkdir("golden")