-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In order to run tests on Windows, Intel OpenCL runtime needs to be installed to run the tests on a compute device. It is also required to create a configuration file so that the tests are run on the CPU instead of a GPU (since there are no GPU available in azure-pipelines) Added update environment script in order to load the latest environment variables set by `Zivid-SDK` after successful installation. `PATH` environment variable must be updated befre running the tests. Ignored sample testing for windows, because of the following error: ``` python: can't open file 'D:\a\samples\sample_print_version_info.py': [Errno 2] No such file or directory ``` Ignored `winreg` import error, this module is not available on Linux
- Loading branch information
Showing
3 changed files
with
81 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
import platform | ||
|
||
import pytest | ||
|
||
|
||
@pytest.mark.skipif( | ||
platform.system() == "Windows", | ||
reason=r"python: can't open file 'D:\a\samples\sample_capture_from_file.py': [Errno 2] No such file or directory", | ||
) | ||
def test_capture_from_file(sample_data_file): | ||
pytest.helpers.run_sample( | ||
name="capture_from_file", working_directory=sample_data_file.parent | ||
) | ||
|
||
|
||
@pytest.mark.skipif( | ||
platform.system() == "Windows", | ||
reason=r"python: can't open file 'D:\a\samples\sample_print_version_info.py': [Errno 2] No such file or directory", | ||
) | ||
def test_print_version_info(): | ||
pytest.helpers.run_sample(name="print_version_info") |