diff --git a/.github/actions/simeng_benchmarks/action.yml b/.github/actions/simeng_benchmarks/action.yml index 4504b1ce71..16a0117e06 100644 --- a/.github/actions/simeng_benchmarks/action.yml +++ b/.github/actions/simeng_benchmarks/action.yml @@ -20,13 +20,22 @@ runs: run: | cd ${{ inputs.RUN_DIR }} simeng $GITHUB_WORKSPACE/configs/a64fx.yaml ${{ inputs.BIN_PATH }} 2>&1 tee $GITHUB_WORKSPACE/simeng.tmp - if grep -e ${{ inputs.PASS_STRING }} $GITHUB_WORKSPACE/simeng.tmp; then - echo "Passed" - else - echo "Failed" - exit 1 - fi + python3 -c " + import os + file_path = $GITHUB_WORKSPACE/simeng.tmp + + if not os.path.exists(file_path): + print(f'File not found: {file_path}') + exit(1) + + with open(file_path, 'r') as f: + if ${{ PASS_STRING }} in f.read(): + print('Passed') + else: + print('Failed') + exit(1) + " # # "name": "CloverLeaf serial gcc8.3.0 armv8.4", # "run_from": "$SIMENG_BENCHMARKS_SRC_DIR/Data_Files/CloverLeaf",