Skip to content

Commit

Permalink
Merge pull request #826 from wildmeshing/teseo/it-platform
Browse files Browse the repository at this point in the history
added platform to integration tests
  • Loading branch information
mtao authored Oct 26, 2024
2 parents c96785a + 4d2f778 commit 7df5a16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions applications/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import sys
import os
import platform
import json
import subprocess
import tempfile
Expand Down Expand Up @@ -128,6 +129,8 @@ def run_one(self, test_file):
res = self.execute_json(input_json.name)

self.assertEqual(res.returncode, 0, f"{res.returncode} != 0")


with open(oracle_file.name, "r") as fp:
result = json.load(fp)

Expand Down Expand Up @@ -169,6 +172,9 @@ def make_suite(config_file, single_application = None, single_config = None):

suite = unittest.TestSuite()
for key,value in config.items():
if "platform" in value and value["platform"] != "" and value["platform"] != platform.system():
print(f"Skipping checks for application {key} because the platform is {platform.system()} and the test is for {config['platform']}")
continue
if single_application is None or key == single_application:
# expects a list of configs to run
suite.addTest(IntegrationTest(key,value, None if single_config is None else [single_config]))
Expand Down

0 comments on commit 7df5a16

Please sign in to comment.