Skip to content

Commit

Permalink
allow silent exec
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jan 8, 2021
1 parent b599956 commit e6cfb34
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions aemdesign-testing/test-spec.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Param(
[switch]$LOGIN = $true,
[switch]$REPORT = $true,
[switch]$DEBUG = $false,
[switch]$SILENT = $false,
[string]$TEST_SELENIUMHUB_SCHEME = $SELENIUMHUB_SCHEME,
[string]$TEST_SELENIUMHUB_PORT = $SELENIUMHUB_PORT,
[string]$TEST_SELENIUMHUB_SERVICE = $SELENIUMHUB_SERVICE,
Expand Down Expand Up @@ -289,12 +290,15 @@ if ( $HUB_AVAILABLE -And $AEM_AVAILABLE )
{
debug "Selenium Hub and AEM are both up and available!" "info"

$START = Read-Host -Prompt "Do you want to start testing with these settings? (y/n)"

if ($START -ne "y")
if ( -Not( $SILENT ) )
{
$START = Read-Host -Prompt "Do you want to start testing with these settings? (y/n)"

if ($START -ne "y")
{
Write-Output "Quiting..."
Exit
}
}

printSectionBanner "Starting Tests on $(LocalIP)" "info"
Expand Down

0 comments on commit e6cfb34

Please sign in to comment.