Skip to content

Commit dee9091

Browse files
committed
fix
1 parent 591b461 commit dee9091

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/util/Test-SharedImplementationsHaveTestCases.ps1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ foreach($q in $queriesToCheck){
6767

6868
$dirName = (Get-Item $testDirectory).Basename
6969
$dirNameLower = $dirName.ToLower()
70+
$sharedName = $q.shared_implementation_short_name
7071

7172
$row["TEST_DIR_EXISTS"] = $true
7273

@@ -76,16 +77,16 @@ foreach($q in $queriesToCheck){
7677
Write-Host "-SOURCE $((Join-Path $testDirectory "test.$Language")) missing"
7778
}
7879

79-
if((Test-Path (Join-Path $testDirectory "$dirNameLower.expected"))){
80+
if((Test-Path (Join-Path $testDirectory "$sharedName.expected"))){
8081
$row["EXPECTED_EXISTS"] = $true
8182
}else{
82-
Write-Host "-EXPECTED $((Join-Path $testDirectory "$dirNameLower.expected")) missing"
83+
Write-Host "-EXPECTED $((Join-Path $testDirectory "$sharedName.expected")) missing"
8384
}
8485

85-
if((Test-Path (Join-Path $testDirectory "$dirNameLower.ql"))){
86+
if((Test-Path (Join-Path $testDirectory "$sharedName.ql"))){
8687
$row["REFERENCE_EXISTS"] = $true
8788
}else{
88-
Write-Host "-QL $((Join-Path $testDirectory "$dirNameLower.ql")) missing"
89+
Write-Host "-QL $((Join-Path $testDirectory "$sharedName.ql")) missing"
8990
}
9091

9192

0 commit comments

Comments
 (0)