Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix e2e tests for explain #2680

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/test_suite/run_test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ def otx_explain_testing(template, root, otx_dir, args, trained=False):
assert os.path.exists(output_dir)
if trained:
assert len(os.listdir(output_dir)) > 0
assert all([os.path.splitext(fname)[1] == ".tiff" for fname in os.listdir(output_dir)])
assert all([os.path.splitext(fname)[1] in [".tiff", ".log"] for fname in os.listdir(output_dir)])


def otx_explain_testing_all_classes(template, root, otx_dir, args):
Expand Down Expand Up @@ -964,7 +964,7 @@ def otx_explain_testing_process_saliency_maps(template, root, otx_dir, args, tra
assert os.path.exists(output_dir)
if trained:
assert len(os.listdir(output_dir)) > 0
assert all([os.path.splitext(fname)[1] == ".png" for fname in os.listdir(output_dir)])
assert all([os.path.splitext(fname)[1] in [".png", ".log"] for fname in os.listdir(output_dir)])


def otx_explain_openvino_testing(template, root, otx_dir, args, trained=False):
Expand Down Expand Up @@ -1005,7 +1005,7 @@ def otx_explain_openvino_testing(template, root, otx_dir, args, trained=False):
assert os.path.exists(output_dir)
if trained:
assert len(os.listdir(output_dir)) > 0
assert all([os.path.splitext(fname)[1] == ".tiff" for fname in os.listdir(output_dir)])
assert all([os.path.splitext(fname)[1] in [".tiff", ".log"] for fname in os.listdir(output_dir)])


def otx_explain_all_classes_openvino_testing(template, root, otx_dir, args):
Expand Down Expand Up @@ -1094,7 +1094,7 @@ def otx_explain_process_saliency_maps_openvino_testing(template, root, otx_dir,
assert os.path.exists(output_dir)
if trained:
assert len(os.listdir(output_dir)) > 0
assert all([os.path.splitext(fname)[1] == ".png" for fname in os.listdir(output_dir)])
assert all([os.path.splitext(fname)[1] in [".png", ".log"] for fname in os.listdir(output_dir)])


def otx_find_testing():
Expand Down
Loading