Permalink
Browse files

Powershell test script should specified current directory

  • Loading branch information...
1 parent edcba4e commit e2ee1d713e6d60f31adac28c19a6e7c2966a0aa9 Dirk Rombauts committed Jul 7, 2014
Showing with 4 additions and 2 deletions.
  1. +4 −2 testOutput.ps1
View
@@ -1,10 +1,12 @@
$version = $args[0]
$formats = @("Html", "Dhtml", "Word", "Excel", "Dita")
+$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
+
foreach ($format in $formats)
{
# Setup variables
- $FeatureDirectory = ".\src\Pickles\Examples"
- $OutputDirectory = ".\Output\" + $format
+ $FeatureDirectory = $PSScriptRoot + "\src\Pickles\Examples"
+ $OutputDirectory = $PSScriptRoot + "\Output\" + $format
$DocumentationFormat = $format
$SystemUnderTestName = "Pickles"
$SystemUnderTestVersion = $version

0 comments on commit e2ee1d7

Please sign in to comment.