Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[feature]
address Travis' feedback
  • Loading branch information
SteveL-MSFT committed Feb 27, 2018
commit 2a66001045ab8cbdf0eddf3d9b6c4eb8952ed345
6 changes: 3 additions & 3 deletions build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ function Get-PesterTag {
}
$values = $vAst.FindAll({$args[0] -is "System.Management.Automation.Language.StringConstantExpressionAst"},$true).Value
$values | ForEach-Object {
if (@('REQUIREADMINONWINDOWS', 'REQUIRESUDOONUNIX', 'SLOW', 'REQUIRENOSUDOONUNIX') -contains $_) {
if (@('REQUIREADMINONWINDOWS', 'REQUIRESUDOONUNIX', 'SLOW') -contains $_) {
# These are valid tags also, but they are not the priority tags
}
elseif (@('CI', 'FEATURE', 'SCENARIO') -contains $_) {
Expand Down Expand Up @@ -1034,9 +1034,9 @@ Restore the module to '$Pester' by running:
}
elseif (-not $Environment.IsWindows -and $Sudo.IsPresent)
{
if (-not $PSBoundParameters.ContainsKey('ExcludeTag'))
if (-not $PSBoundParameters.ContainsKey('Tag'))
{
$ExcludeTag += 'RequireNoSudoOnUnix'
$Tag = 'RequireSudoOnUnix'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Describe "Set-Date for admin" -Tag @('CI', 'RequireAdminOnWindows', 'RequireSudo
}
}

Describe "Set-Date" -Tag @('CI', 'RequireNoSudoOnUnix') {
Describe "Set-Date" -Tag @('CI') {
It "Set-Date should produce an error in a non-elevated context" {
{ Get-Date | Set-Date } | ShouldBeErrorId "System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.SetDateCommand"
}
Expand Down