Skip to content

Commit

Permalink
Merged PR 950795: Remove RunProcessAsTask workaround from smoke tests
Browse files Browse the repository at this point in the history
Remove workaround for jamesmanning/RunProcessAsTask#20
  • Loading branch information
damonbarry committed Jul 10, 2018
1 parent 91c5612 commit 20143fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion smoke/IotEdgeQuickstart/IotEdgeQuickstart.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<PackageReference Include="Microsoft.Azure.Devices" Version="1.16.0" />
<PackageReference Include="Microsoft.Azure.EventHubs" Version="1.1.0" />
<PackageReference Include="Microsoft.CodeCoverage" Version="1.0.3" />
<PackageReference Include="RunProcessAsTask" Version="1.2.1" />
<PackageReference Include="RunProcessAsTask" Version="1.2.3" />
<PackageReference Include="YamlDotNet" Version="4.3.2" />
</ItemGroup>

Expand Down
5 changes: 1 addition & 4 deletions smoke/IotEdgeQuickstart/details/Iotedged.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ public Iotedged(string archivePath, Option<RegistryCredentials> credentials, Opt

public async Task VerifyNotActive()
{
// 'sleep' before 'systemctl' works around a problem in
// RunProcessAsTask seen on Raspberry Pi 3. See
// https://github.com/jamesmanning/RunProcessAsTask/issues/20
string[] result = await Process.RunAsync("bash", "-c \"sleep .5 && systemctl --no-pager show iotedge | grep ActiveState=\"");
string[] result = await Process.RunAsync("bash", "-c \"systemctl --no-pager show iotedge | grep ActiveState=\"");
if (result.First().Split("=").Last() == "active")
{
throw new Exception("IoT Edge Security Daemon is already active. If you want this test to overwrite the active configuration, please run `systemctl stop iotedged` first.");
Expand Down

0 comments on commit 20143fa

Please sign in to comment.