Skip to content

Commit 4c4376e

Browse files
authored
Fix Python tests search path (#82)
1 parent 3a1da79 commit 4c4376e

33 files changed

+36
-36
lines changed

.github/workflows/OCV-Contrib-PR-3.4-ARM64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ jobs:
368368
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
369369
run: |
370370
cd $HOME/opencv/modules/python/test
371-
python3 ./test.py --repo ../../../ -v
371+
python3 ./test.py --repo $HOME/opencv -v
372372
- name: Java
373373
timeout-minutes: 60
374374
id: java-test

.github/workflows/OCV-Contrib-PR-3.4-U14.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ jobs:
369369
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
370370
run: |
371371
cd $HOME/opencv/modules/python/test
372-
python3 ./test.py --repo ../../../ -v
372+
python3 ./test.py --repo $HOME/opencv -v
373373
- name: Java
374374
timeout-minutes: 60
375375
id: java-test

.github/workflows/OCV-Contrib-PR-3.4-U20.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ jobs:
368368
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
369369
run: |
370370
cd $HOME/opencv/modules/python/test
371-
python3 ./test.py --repo ../../../ -v
371+
python3 ./test.py --repo $HOME/opencv -v
372372
- name: Java
373373
timeout-minutes: 60
374374
id: java-test

.github/workflows/OCV-Contrib-PR-3.4-W10.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ jobs:
360360
cd ${{ github.workspace }}\opencv\modules\python\test
361361
set PYTHONPATH=%PYTHONPATH%;${{ github.workspace }}\build\python_loader;${{ github.workspace }}\build\lib\python3
362362
set PATH=%PATH%;${{ github.workspace }}\build\bin;${{ github.workspace }}\build\lib\python3
363-
python test.py --repo ..\..\..\ -v
363+
python test.py --repo ${{ github.workspace }}\opencv -v
364364
- name: Java
365365
timeout-minutes: 60
366366
id: java-test
@@ -375,4 +375,4 @@ jobs:
375375
if: ${{ always() && steps.java-test.outcome == 'success' && steps.build-opencv-contrib.outcome == 'success' }}
376376
with:
377377
name: junit-html-windows10
378-
path: ${{ github.workspace }}\build\java_test\testResults\junit-noframes.html
378+
path: ${{ github.workspace }}\build\java_test\testResults\junit-noframes.html

.github/workflows/OCV-Contrib-PR-3.4-macOS-ARM64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ jobs:
418418
timeout-minutes: 60
419419
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
420420
run: |
421-
python3 ./test.py --repo ../../../ -v
421+
python3 ./test.py --repo ${{ github.workspace }}/opencv -v
422422
working-directory: ${{ github.workspace }}/opencv/modules/python/test
423423
- name: Java
424424
timeout-minutes: 60

.github/workflows/OCV-Contrib-PR-3.4-macOS-x86_64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ jobs:
418418
timeout-minutes: 60
419419
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
420420
run: |
421-
python3 ./test.py --repo ../../../ -v
421+
python3 ./test.py --repo ${{ github.workspace }}/opencv -v
422422
working-directory: ${{ github.workspace }}/opencv/modules/python/test
423423
- name: Java
424424
timeout-minutes: 60

.github/workflows/OCV-Contrib-PR-4.x-ARM64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ jobs:
422422
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
423423
run: |
424424
cd $HOME/opencv/modules/python/test
425-
python3 ./test.py --repo ../../../ -v
425+
python3 ./test.py --repo $HOME/opencv -v
426426
- name: Java
427427
timeout-minutes: 60
428428
id: java-test

.github/workflows/OCV-Contrib-PR-4.x-U20.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ jobs:
430430
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
431431
run: |
432432
cd $HOME/opencv/modules/python/test
433-
python3 ./test.py --repo ../../../ -v
433+
python3 ./test.py --repo $HOME/opencv -v
434434
- name: Java
435435
timeout-minutes: 60
436436
id: java-test

.github/workflows/OCV-Contrib-PR-4.x-W10.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ jobs:
418418
cd ${{ github.workspace }}\opencv\modules\python\test
419419
set PYTHONPATH=%PYTHONPATH%;${{ github.workspace }}\build\python_loader;${{ github.workspace }}\build\lib\python3
420420
set PATH=%PATH%;${{ github.workspace }}\build\bin;${{ github.workspace }}\build\lib\python3
421-
python test.py --repo ..\..\..\ -v
421+
python test.py --repo ${{ github.workspace }}\opencv -v
422422
- name: Java
423423
timeout-minutes: 60
424424
id: java-test
@@ -433,4 +433,4 @@ jobs:
433433
if: ${{ always() && steps.java-test.outcome == 'success' && steps.build-opencv-contrib.outcome == 'success' }}
434434
with:
435435
name: junit-html-windows10
436-
path: ${{ github.workspace }}\build\java_test\testResults\junit-noframes.html
436+
path: ${{ github.workspace }}\build\java_test\testResults\junit-noframes.html

.github/workflows/OCV-Contrib-PR-4.x-macOS-ARM64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ jobs:
492492
timeout-minutes: 60
493493
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
494494
run: |
495-
python3 ./test.py --repo ../../../ -v
495+
python3 ./test.py --repo ${{ github.workspace }}/opencv -v
496496
working-directory: ${{ github.workspace }}/opencv/modules/python/test
497497
- name: Java
498498
timeout-minutes: 60

0 commit comments

Comments
 (0)