Skip to content

Commit 39a18fd

Browse files
author
Aditya Narayan
committedMar 21, 2025·
Simplify file paths in Alpine test files
Adjusted the file paths for `CCTComparisonBomTestFile` and `CCTLocalBomTestFile` in `ComponentCreatorInitialAlpine.cs`, `PackageIdentifierBasicSBOMAlpine.cs`, and `PackageIdentifierInitialAlpine.cs` by removing one level of directory traversal (`"..",`) from the `Path.Combine` method calls.
1 parent 11881ce commit 39a18fd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎src/SW360IntegrationTest/Alpine/ComponentCreatorInitialAlpine.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void Setup()
2929
{
3030
testParameters = new TestParamAlpine();
3131
OutFolder = TestHelper.OutFolder;
32-
CCTComparisonBomTestFile = Path.GetFullPath(Path.Combine(OutFolder, "..", "..", "..", "src", "SW360IntegrationTest", "PackageCreatorTestFiles", "Alpine", "CCTComparisonBOMAlpineInitial.json"));
32+
CCTComparisonBomTestFile = Path.GetFullPath(Path.Combine(OutFolder, "..", "..", "src", "SW360IntegrationTest", "PackageCreatorTestFiles", "Alpine", "CCTComparisonBOMAlpineInitial.json"));
3333

3434
if (!TestHelper.BOMCreated)
3535
{

‎src/SW360IntegrationTest/Alpine/PackageIdentifierBasicSBOMAlpine.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void Setup()
1717
{
1818
OutFolder = TestHelper.OutFolder;
1919

20-
CCTLocalBomTestFile = Path.GetFullPath(Path.Combine(OutFolder, "..", "..", "..", "src", "SW360IntegrationTest", "PackageIdentifierTestFiles", "Alpine", "CCTLocalBOMAlpineInitial.json"));
20+
CCTLocalBomTestFile = Path.GetFullPath(Path.Combine(OutFolder, "..", "..", "src", "SW360IntegrationTest", "PackageIdentifierTestFiles", "Alpine", "CCTLocalBOMAlpineInitial.json"));
2121

2222
if (!Directory.Exists(Path.Combine(OutFolder, "..", "BOMs")))
2323
{

‎src/SW360IntegrationTest/Alpine/PackageIdentifierInitialAlpine.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void Setup()
2626
{
2727
OutFolder = TestHelper.OutFolder;
2828

29-
CCTLocalBomTestFile = Path.GetFullPath(Path.Combine(OutFolder, "..", "..", "..", "src", "SW360IntegrationTest", "PackageIdentifierTestFiles", "Alpine", "CCTLocalBOMAlpineInitial.json"));
29+
CCTLocalBomTestFile = Path.GetFullPath(Path.Combine(OutFolder, "..", "..", "src", "SW360IntegrationTest", "PackageIdentifierTestFiles", "Alpine", "CCTLocalBOMAlpineInitial.json"));
3030

3131
if (!Directory.Exists(Path.GetFullPath(Path.Combine(OutFolder, "..", "BOMs"))))
3232
{

0 commit comments

Comments
 (0)
Please sign in to comment.