mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
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:
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user