diff --git a/scripts/run_driver_tests.psm1 b/scripts/run_driver_tests.psm1 index bf6744d306..aac5a19b7a 100644 --- a/scripts/run_driver_tests.psm1 +++ b/scripts/run_driver_tests.psm1 @@ -9,7 +9,6 @@ Push-Location $WorkingDirectory Import-Module .\common.psm1 -Force -ArgumentList ($LogFileName) -WarningAction SilentlyContinue Import-Module .\install_ebpf.psm1 -Force -ArgumentList ($WorkingDirectory, $LogFileName) -WarningAction SilentlyContinue -$TestDirectory = "$env:ProgramFiles\ebpf-for-windows\testing" $CodeCoverage = "$env:ProgramFiles\OpenCppCoverage\OpenCppCoverage.exe" # @@ -114,7 +113,7 @@ function Invoke-CICDTests "socket_tests.exe") foreach ($Test in $TestList) { - Invoke-Test -TestName "$TestDirectory\$Test" -VerboseLogs $VerboseLogs -Coverage $Coverage + Invoke-Test -TestName "$Test" -VerboseLogs $VerboseLogs -Coverage $Coverage } if ($Coverage) { diff --git a/scripts/vm_run_tests.psm1 b/scripts/vm_run_tests.psm1 index 999c5720be..571d5b417d 100644 --- a/scripts/vm_run_tests.psm1 +++ b/scripts/vm_run_tests.psm1 @@ -115,7 +115,7 @@ function Set-eBPFProgramOnVM [Parameter(Mandatory=$True)] [string] $LogFileName) $WorkingDirectory = "$Env:SystemDrive\$WorkingDirectory" Import-Module $WorkingDirectory\common.psm1 -ArgumentList ($LogFileName) -Force -WarningAction SilentlyContinue - Import-Module $WorkingDirectory\run_driver_tests.psm1 -ArgumentList ($TestDWorkingDirectoryirectory, $LogFileName) -Force -WarningAction SilentlyContinue + Import-Module $WorkingDirectory\run_driver_tests.psm1 -ArgumentList ($WorkingDirectory, $LogFileName) -Force -WarningAction SilentlyContinue Write-Log "Setting program $ProgId at interface $Interface on $VM." Invoke-NetshEbpfCommand -Arguments "set program $ProgId xdp_test interface=""$Interface"""