Remove unneeded use of chmod 777 (#17974)

* Update Pester.Commands.Cmdlets.GetCommand.Tests.ps1

* Update Export-Alias.Tests.ps1

* Update test/powershell/Modules/Microsoft.PowerShell.Utility/Export-Alias.Tests.ps1

* Update test/powershell/Modules/Microsoft.PowerShell.Core/Pester.Commands.Cmdlets.GetCommand.Tests.ps1

* Update test/powershell/Modules/Microsoft.PowerShell.Core/Pester.Commands.Cmdlets.GetCommand.Tests.ps1
This commit is contained in:
Travis Plunk
2022-08-29 11:06:46 -07:00
committed by GitHub
parent 66b59ed415
commit 96d0a10e7f
2 changed files with 3 additions and 3 deletions
@@ -10,8 +10,8 @@ Describe "Tests Get-Command with relative paths and wildcards" -Tag "CI" {
#$null = New-Item -ItemType File -Path (Join-Path $TestDrive WildCardCommandA.exe) -ErrorAction Ignore
#$null = New-Item -ItemType File -Path (Join-Path $TestDRive WildCardCommand[B].exe) -ErrorAction Ignore
if ( $IsLinux -or $IsMacOS ) {
/bin/chmod 777 "$file1"
/bin/chmod 777 "$file2"
/bin/chmod a+rw "$file1"
/bin/chmod a+rw "$file2"
}
$commandInfo = Get-Command Get-Date -ShowCommandInfo
}
@@ -120,7 +120,7 @@ Describe "Export-Alias DRT Unit Tests" -Tags "CI" {
}
else
{
chmod 777 $fulltestpath
chmod a+rw $fulltestpath
}
}