@@ -733,6 +733,7 @@ await CliTester.Run(new RunConfiguration[]
733733 $ "start --port { _funcHostPort } --verbose --runtime inproc8"
734734 } ,
735735 ExpectExit = true ,
736+ ExitInError = true ,
736737 ErrorContains = [ "Failed to locate the inproc8 model host" ] ,
737738 Test = async ( workingDir , p , _ ) =>
738739 {
@@ -766,6 +767,7 @@ await CliTester.Run(new RunConfiguration[]
766767 $ "start --port { _funcHostPort } --verbose"
767768 } ,
768769 ExpectExit = true ,
770+ ExitInError = true ,
769771 ErrorContains = [ "Failed to locate the inproc8 model host" ] ,
770772 Test = async ( workingDir , p , _ ) =>
771773 {
@@ -885,6 +887,7 @@ await CliTester.Run(new RunConfiguration[]
885887 $ "start --port { _funcHostPort } --verbose"
886888 } ,
887889 ExpectExit = false ,
890+ ExitInError = true ,
888891 ErrorContains = [ "Failed to locate the inproc6 model host at" ] ,
889892 Test = async ( workingDir , p , _ ) =>
890893 {
@@ -918,6 +921,7 @@ await CliTester.Run(new RunConfiguration[]
918921 $ "start --port { _funcHostPort } --verbose --runtime inproc6"
919922 } ,
920923 ExpectExit = false ,
924+ ExitInError = true ,
921925 ErrorContains = [ "Failed to locate the inproc6 model host at" ] ,
922926 Test = async ( workingDir , p , _ ) =>
923927 {
@@ -999,7 +1003,8 @@ await CliTester.Run(new RunConfiguration[]
9991003 {
10001004 $ "start --port { _funcHostPort } --verbose --runtime inproc6"
10011005 } ,
1002- ExpectExit = false ,
1006+ ExpectExit = true ,
1007+ ExitInError = true ,
10031008 ErrorContains = [ "The runtime argument value provided, 'inproc6', is invalid. The provided value is only valid for the worker runtime 'dotnet'." ] ,
10041009 Test = async ( workingDir , p , _ ) =>
10051010 {
@@ -1033,6 +1038,7 @@ await CliTester.Run(new RunConfiguration[]
10331038 $ "start --port { _funcHostPort } --verbose --runtime inproc8"
10341039 } ,
10351040 ExpectExit = false ,
1041+ ExitInError = true ,
10361042 ErrorContains = [ "The runtime argument value provided, 'inproc8', is invalid. The provided value is only valid for the worker runtime 'dotnet'." ] ,
10371043 Test = async ( workingDir , p , _ ) =>
10381044 {
@@ -1066,6 +1072,7 @@ await CliTester.Run(new RunConfiguration[]
10661072 $ "start --port { _funcHostPort } --verbose --runtime inproc8"
10671073 } ,
10681074 ExpectExit = false ,
1075+ ExitInError = true ,
10691076 ErrorContains = [ "The runtime argument value provided, 'inproc8', is invalid. For the 'inproc8' runtime, the 'FUNCTIONS_INPROC_NET8_ENABLED' environment variable must be set. See https://aka.ms/azure-functions/dotnet/net8-in-process." ] ,
10701077 Test = async ( workingDir , p , _ ) =>
10711078 {
@@ -1099,6 +1106,7 @@ await CliTester.Run(new RunConfiguration[]
10991106 $ "start --port { _funcHostPort } --verbose --runtime default"
11001107 } ,
11011108 ExpectExit = false ,
1109+ ExitInError = true ,
11021110 ErrorContains = [ "The runtime argument value provided, 'default', is invalid. The provided value is only valid for the worker runtime 'dotnetIsolated'." ] ,
11031111 Test = async ( workingDir , p , _ ) =>
11041112 {
@@ -1132,6 +1140,7 @@ await CliTester.Run(new RunConfiguration[]
11321140 $ "start --port { _funcHostPort } --verbose --runtime default"
11331141 } ,
11341142 ExpectExit = false ,
1143+ ExitInError = true ,
11351144 ErrorContains = [ "The runtime argument value provided, 'default', is invalid. The provided value is only valid for the worker runtime 'dotnetIsolated'." ] ,
11361145 Test = async ( workingDir , p , _ ) =>
11371146 {
@@ -1165,6 +1174,7 @@ await CliTester.Run(new RunConfiguration[]
11651174 $ "start --port { _funcHostPort } --verbose --runtime inproc6"
11661175 } ,
11671176 ExpectExit = false ,
1177+ ExitInError = true ,
11681178 ErrorContains = [ "The runtime argument value provided, 'inproc6', is invalid. For the 'inproc6' runtime, the 'FUNCTIONS_INPROC_NET8_ENABLED' environment variable cannot be be set. See https://aka.ms/azure-functions/dotnet/net8-in-process." ] ,
11691179 Test = async ( workingDir , p , _ ) =>
11701180 {
@@ -1199,6 +1209,7 @@ await CliTester.Run(new RunConfiguration[]
11991209 $ "start --port { _funcHostPort } --verbose --runtime inproc6"
12001210 } ,
12011211 ExpectExit = false ,
1212+ ExitInError = true ,
12021213 ErrorContains = [ "The runtime argument value provided, 'inproc6', is invalid. The provided value is only valid for the worker runtime 'dotnet'." ] ,
12031214 Test = async ( workingDir , p , _ ) =>
12041215 {
@@ -1233,6 +1244,7 @@ await CliTester.Run(new RunConfiguration[]
12331244 $ "start --port { _funcHostPort } --verbose --runtime inproc8"
12341245 } ,
12351246 ExpectExit = false ,
1247+ ExitInError = true ,
12361248 ErrorContains = [ "The runtime argument value provided, 'inproc8', is invalid. The provided value is only valid for the worker runtime 'dotnet'." ] ,
12371249 Test = async ( workingDir , p , _ ) =>
12381250 {
0 commit comments