File tree 2 files changed +25
-7
lines changed
2 files changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,16 @@ function Restart-CSIProxy {
25
25
}
26
26
27
27
function Run-CSIProxyIntegrationTests {
28
- Write-Output " Running integration tests"
29
- .\integrationtests.test.exe -- test.v -- test.run TestAPIGroups
30
- .\integrationtests.test.exe -- test.v -- test.run TestDiskAPIGroup
31
- .\integrationtests.test.exe -- test.v -- test.run TestVolumeAPIs
32
- .\integrationtests.test.exe -- test.v -- test.run TestSmbAPIGroup
33
- .\integrationtests.test.exe -- test.v -- test.run TestFilesystemAPIGroup
28
+ param (
29
+ [string ]$test_args = " "
30
+ )
31
+
32
+ $ErrorActionPreference = " Stop" ;
33
+ Write-Output " Running integration tests with test_args=$test_args " ;
34
+ $flags = $test_args.Split (" " );
35
+ .\integrationtests.test.exe @flags
36
+
37
+ if (-not $? ) {
38
+ throw " failed to run with exit code=$? "
39
+ }
34
40
}
Original file line number Diff line number Diff line change @@ -50,5 +50,17 @@ restart_csi_proxy() {
50
50
51
51
run_csi_proxy_integration_tests () {
52
52
echo " Run integration tests"
53
- gcloud compute ssh $windows_node --command=" powershell -c \" & { Import-Module .\utils.psm1; Run-CSIProxyIntegrationTests }\" "
53
+ local ps1=$( cat << 'EOF '
54
+ "& {
55
+ Import-Module .\\utils.psm1;
56
+ Run-CSIProxyIntegrationTests -test_args \"--test.v --test.run TestAPIGroups\";
57
+ Run-CSIProxyIntegrationTests -test_args \"--test.v --test.run TestFilesystemAPIGroup\";
58
+ Run-CSIProxyIntegrationTests -test_args \"--test.v --test.run TestDiskAPIGroup\";
59
+ Run-CSIProxyIntegrationTests -test_args \"--test.v --test.run TestVolumeAPIs\";
60
+ Run-CSIProxyIntegrationTests -test_args \"--test.v --test.run TestSmbAPIGroup\";
61
+ }"
62
+ EOF
63
+ ) ;
64
+
65
+ gcloud compute ssh $windows_node --command=" powershell -c $( echo $ps1 | tr ' \n' ' ' ) "
54
66
}
You can’t perform that action at this time.
0 commit comments