spl-core 4.1.0__py3-none-any.whl → 4.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
spl_core/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "4.1.0"
1
+ __version__ = "4.1.1"
@@ -27,7 +27,7 @@ class BaseVariantTestRunner(ABC):
27
27
 
28
28
  @property
29
29
  def expected_variant_report_artifacts(self) -> List[Path]:
30
- return [Path("reports/reports/index.html")]
30
+ return [Path("reports/html/index.html")]
31
31
 
32
32
  @property
33
33
  def expected_component_report_artifacts(self) -> List[Path]:
@@ -39,23 +39,29 @@ class BaseVariantTestRunner(ABC):
39
39
  Path("coverage/index.html"),
40
40
  ]
41
41
 
42
+ def assert_artifact_exists(self, dir: Path, artifact: Path) -> None:
43
+ if artifact.is_absolute():
44
+ assert artifact.exists(), f"Artifact {artifact} does not exist" # noqa: S101
45
+ else:
46
+ assert Path.joinpath(dir, artifact).exists(), f"Artifact {Path.joinpath(dir, artifact)} does not exist" # noqa: S101
47
+
42
48
  def test_build(self) -> None:
43
49
  spl_build: SplBuild = SplBuild(variant=self.variant, build_kit="prod")
44
50
  assert 0 == spl_build.execute(target="all") # noqa: S101
45
51
  for artifact in self.expected_build_artifacts:
46
- assert artifact.exists() or Path.joinpath(spl_build.build_dir, artifact).exists() # noqa: S101
52
+ self.assert_artifact_exists(dir=spl_build.build_dir, artifact=artifact)
47
53
 
48
54
  def test_unittest(self) -> None:
49
55
  spl_build: SplBuild = SplBuild(variant=self.variant, build_kit="test")
50
56
  assert 0 == spl_build.execute(target="unittests") # noqa: S101
51
57
  for artifact in self.expected_test_artifacts:
52
- assert artifact.exists() # noqa: S101
58
+ self.assert_artifact_exists(dir=spl_build.build_dir, artifact=artifact)
53
59
 
54
60
  def test_reports(self) -> None:
55
61
  spl_build: SplBuild = SplBuild(variant=self.variant, build_kit="test")
56
62
  assert 0 == spl_build.execute(target="all") # noqa: S101
57
63
  for artifact in self.expected_variant_report_artifacts:
58
- assert Path.joinpath(spl_build.build_dir, artifact).exists() # noqa: S101
64
+ self.assert_artifact_exists(dir=spl_build.build_dir, artifact=artifact)
59
65
  for component in self.component_paths:
60
66
  for artifact in self.expected_component_report_artifacts:
61
- assert Path.joinpath(spl_build.build_dir, component, artifact).exists() # noqa: S101
67
+ self.assert_artifact_exists(dir=Path.joinpath(spl_build.build_dir, "reports", "html", spl_build.build_dir, component, "reports"), artifact=artifact)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spl-core
3
- Version: 4.1.0
3
+ Version: 4.1.1
4
4
  Summary: Software Product Line Support for CMake
5
5
  Home-page: https://github.com/avengineers/spl-core
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
- spl_core/__init__.py,sha256=jegJMYuSW90VKiMotVdNAakBvYVPirm-A5oeyJVuhH8,22
1
+ spl_core/__init__.py,sha256=NtWqZUv_8plp1gndoYX_eAqe7K65oPMh-hIvB4Evdc8,22
2
2
  spl_core/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  spl_core/common/cmake.py,sha256=qId_QIGqvG_qkJWOTJjiW723nev6p0vvP3O0Jlfppz4,2054
4
4
  spl_core/common/command_line_executor.py,sha256=2ck2ndExyjfFORGMHhtOPTWA3gJGJ_GdZfopen2ISoY,2019
@@ -60,9 +60,9 @@ spl_core/project_creator/templates/variant/{{cookiecutter.flavor}}/{{cookiecutte
60
60
  spl_core/project_creator/templates/variant/{{cookiecutter.flavor}}/{{cookiecutter.subsystem}}/parts.cmake,sha256=s-SMLPvajH4ZGupruSuh-SbL8jackverQpxGqdoD-Io,77
61
61
  spl_core/project_creator/variant.py,sha256=juZWBvLT7i1ZtP1LlGBDalzTf0mhFvfoON43VoqjZOA,532
62
62
  spl_core/project_creator/workspace_artifacts.py,sha256=E4oZjnFgC2-cz9jYIYUZzOC9R07LBJAbgGwHAuK0Arg,1279
63
- spl_core/test_utils/base_variant_test_runner.py,sha256=xoMiNxCxXNyNdwAJ0xmzwqgMPrNJOSeanbttlDOxQSA,2256
63
+ spl_core/test_utils/base_variant_test_runner.py,sha256=FRPkyEyUVsFMmfshzooXzOPUeYaoMBQKFVi5m671P38,2665
64
64
  spl_core/test_utils/spl_build.py,sha256=J7gj9Q979pivkYi6Bm2YUSCpjCXQ72rioCZbAgcCoLY,2172
65
- spl_core-4.1.0.dist-info/LICENSE,sha256=UjjA0o8f5tT3wVm7qodTLAhPWLl6kgVyn9FPAd1VeYY,1099
66
- spl_core-4.1.0.dist-info/METADATA,sha256=VHPQGIRfVlJq74E4--POmNp3_aC1Ir3_Qmh3SdV41g8,1997
67
- spl_core-4.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
68
- spl_core-4.1.0.dist-info/RECORD,,
65
+ spl_core-4.1.1.dist-info/LICENSE,sha256=UjjA0o8f5tT3wVm7qodTLAhPWLl6kgVyn9FPAd1VeYY,1099
66
+ spl_core-4.1.1.dist-info/METADATA,sha256=T0AkQPYgFf7UCpqGiAZqJ26AN_0l39OT7_qcbG9XKfg,1997
67
+ spl_core-4.1.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
68
+ spl_core-4.1.1.dist-info/RECORD,,