소스 검색

Add retry logic to BenchmarkTest test on Windows

yhirose 2 주 전
부모
커밋
ad5839f0d1
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      .github/workflows/test.yaml

+ 4 - 1
.github/workflows/test.yaml

@@ -165,7 +165,10 @@ jobs:
       run: cmake --build build --config Release -- /v:m /clp:ShowCommandLine
       run: cmake --build build --config Release -- /v:m /clp:ShowCommandLine
     - name: Run tests ${{ matrix.config.name }}
     - name: Run tests ${{ matrix.config.name }}
       if: ${{ matrix.config.run_tests }}
       if: ${{ matrix.config.run_tests }}
-      run: ctest --output-on-failure --test-dir build -C Release
+      run: ctest --output-on-failure --test-dir build -C Release -E "BenchmarkTest"
+    - name: Run benchmark tests with retry ${{ matrix.config.name }}
+      if: ${{ matrix.config.run_tests }}
+      run: ctest --output-on-failure --test-dir build -C Release -R "BenchmarkTest" --repeat until-pass:5
 
 
     env:
     env:
       VCPKG_ROOT: "C:/vcpkg"
       VCPKG_ROOT: "C:/vcpkg"