Skip to content

Commit ac4b6b7

Browse files
authored
Merge branch 'main' into users/devaid/AddingWinArm64NvidiaSmi
2 parents eb92050 + 71df05b commit ac4b6b7

34 files changed

Lines changed: 1908 additions & 589 deletions

.github/workflows/pull-request-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup .NET
3232
uses: actions/setup-dotnet@v3
3333
with:
34-
dotnet-version: 9.0.100
34+
dotnet-version: 9.0.x
3535

3636
- name: Add permission to run shell
3737
run: chmod -R +x *.sh

.pipelines/azure-pipelines-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ stages:
4747
continueOnError: false
4848
inputs:
4949
packageType: 'sdk'
50-
version: '9.x'
50+
version: '9.0.x'
5151
useGlobalJson: false
5252
performMultiLevelLookup: true
5353
workingDirectory: '$(Build.SourcesDirectory)'

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.30
1+
2.1.1

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.100",
3+
"version": "9.0.301",
44
"rollForward": "feature"
55
}
66
}

src/VirtualClient/VirtualClient.Actions.FunctionalTests/WorkloadAssert.cs

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,34 +73,31 @@ public static void CommandsExecuted(DependencyFixture fixture, params string[] c
7373
/// </summary>
7474
public static void SSHCommandsExecuted(DependencyFixture fixture, params string[] commands)
7575
{
76-
List<ISshCommandProxy> sshCommands = new List<ISshCommandProxy>();
77-
List<ISshCommandProxy> sshCommandsConfirmed = new List<ISshCommandProxy>();
78-
foreach (InMemorySshClient sshClient in fixture.SshClientManager.SshClients)
76+
List<string> sshCommands = new List<string>();
77+
78+
foreach (InMemorySshClient sshClient in fixture.SshClientFactory.SshClients)
7979
{
80-
sshCommands.AddRange(sshClient.SshCommands);
80+
sshCommands.AddRange(sshClient.CommandsExecuted);
8181
}
8282

8383
foreach (string command in commands)
8484
{
85-
ISshCommandProxy matchingProcess = null;
85+
string matchingCommand = null;
86+
8687
try
8788
{
8889
// Try to match regex
89-
matchingProcess = sshCommands.FirstOrDefault(
90-
sshCommand => Regex.IsMatch($"{sshCommand.CommandText}".Trim(), command, RegexOptions.IgnoreCase)
91-
&& !sshCommandsConfirmed.Any(otherProc => object.ReferenceEquals(sshCommand, otherProc)));
90+
matchingCommand = sshCommands.FirstOrDefault(
91+
cmd => Regex.IsMatch($"{cmd}".Trim(), command, RegexOptions.IgnoreCase));
9292
}
9393
catch
9494
{
9595
}
9696

9797
// Or command exact match
98-
matchingProcess = matchingProcess ?? sshCommands.FirstOrDefault(
99-
sshCommand => $"{sshCommand.CommandText}".Trim() == command
100-
&& !sshCommandsConfirmed.Any(otherProc => object.ReferenceEquals(sshCommand, otherProc)));
98+
matchingCommand = matchingCommand ?? sshCommands.FirstOrDefault(cmd => $"{cmd}".Trim() == command);
10199

102-
Assert.IsNotNull(matchingProcess, $"The command '{command}' was not executed.");
103-
sshCommandsConfirmed.Add(matchingProcess);
100+
Assert.IsNotNull(matchingCommand, $"The command '{command}' was not executed.");
104101
}
105102
}
106103

src/VirtualClient/VirtualClient.Common.UnitTests/SshClientManagerTests.cs

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/VirtualClient/VirtualClient.Common/SshClient/ISshClientManager.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/VirtualClient/VirtualClient.Common/SshClient/ISshClientProxy.cs

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/VirtualClient/VirtualClient.Common/SshClient/ISshCommandProxy.cs

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/VirtualClient/VirtualClient.Common/SshClient/SshClientManager.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)