File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,17 @@ Push-Location -Path $WorkingDirectory
24
24
try {
25
25
26
26
$repositoryUrl = " https://github.com/Azure/azure-amqp.git"
27
- # We would like to use the "hotfix" branch because that is current, but unfortunately it references System.Net.Security version 4.0.0
28
- $repositoryBranch = " master "
29
- $cloneCommand = " git clone $repositoryUrl --branch $repositoryBranch "
27
+ $repositoryHash = " d82a86455c3459c5628bc95b25511f6e8a065598 "
28
+ $cloneCommand = " git clone $repositoryUrl --revision $repositoryHash "
29
+
30
30
31
31
Write-Host " Cloning repository from $repositoryUrl ..."
32
32
Invoke-LoggedCommand $cloneCommand
33
33
34
34
Set-Location - Path " ./azure-amqp/test/TestAmqpBroker"
35
35
36
- Invoke-LoggedCommand " dotnet build -p RollForward=LatestMajor - -framework net8.0"
37
- if (! $? -ne 0 ) {
36
+ Invoke-LoggedCommand " dotnet build --framework net8.0"
37
+ if (-not $? ) {
38
38
Write-Error " Failed to build TestAmqpBroker."
39
39
exit 1
40
40
}
46
46
47
47
Write-Host " Starting test broker listening on ${env: TEST_BROKER_ADDRESS} ..."
48
48
49
+ # Note that we cannot use `dotnet run -f` here because the TestAmqpBroker relies on args[0] being the broker address.
50
+ # If we use `dotnet run -f`, the first argument is the csproj file.
51
+ # Instead, we use `dotnet exec` to run the compiled DLL directly.
52
+ # This allows us to pass the broker address as the first argument.
49
53
Set-Location - Path $WorkingDirectory / azure- amqp/ bin/ Debug/ TestAmqpBroker/ net8.0
50
-
51
54
$job = dotnet exec ./ TestAmqpBroker.dll ${env: TEST_BROKER_ADDRESS} / headless &
52
55
53
56
$env: TEST_BROKER_JOBID = $job.Id
You can’t perform that action at this time.
0 commit comments