File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,13 @@ function Compare-Files {
8282 # Compare files
8383 Get-ChildItem - Path $expectedDir - File | ForEach-Object {
8484 $actualFile = Join-Path $actualDir $_.Name
85+
86+ # Skip Semgrep-related files only for init-without-token test
87+ if ($label -match ' init-without-token' -and $_.Name -match ' semgrep' ) {
88+ Write-Host " ⏭️ Skipping Semgrep file: $label /$ ( $_.Name ) "
89+ continue
90+ }
91+
8592 if (-not (Test-Path $actualFile )) {
8693 Write-Host " ❌ $label /$ ( $_.Name ) does not exist in actual output"
8794 Write-Host " Expected: $ ( $_.FullName ) "
Original file line number Diff line number Diff line change @@ -58,6 +58,12 @@ compare_files() {
5858 filename=$( basename " $file " )
5959 actual_file=" $actual_dir /$filename "
6060
61+ # Skip Semgrep-related files only for init-without-token test
62+ if [[ " $label " == * " init-without-token" * && " $filename " == * " semgrep" * ]]; then
63+ echo " ⏭️ Skipping Semgrep file: $label /$filename "
64+ continue
65+ fi
66+
6167 if [ ! -f " $actual_file " ]; then
6268 echo " ❌ $label /$filename does not exist in actual output"
6369 echo " Expected: $file "
You can’t perform that action at this time.
0 commit comments