Skip to content

Commit

Permalink
Changed default build location setting for Linux to accomodate multip…
Browse files Browse the repository at this point in the history
…le build SKUs
  • Loading branch information
amitaga committed Jan 15, 2016
1 parent 8ae5176 commit d5a3a89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tests/EndToEndTests/TestDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,9 +631,9 @@ def runCommand(args):
help="optional test name(s) to run, specified as Suite/TestName. "
"Use list command to list available tests. "
"If not specified then all tests will be run.")
defaultBuildLocation=os.path.realpath(os.path.join(thisDir, "../..", "x64" if windows else "build"))

defaultBuildSKU = "gpu"
defaultBuildLocation=os.path.realpath(os.path.join(thisDir, "../..", "x64" if windows else "build/"+defaultBuildSKU))

runSubparser.add_argument("-b", "--build-location", default=defaultBuildLocation, help="location of the CNTK build to run")
runSubparser.add_argument("-t", "--tag", help="runs tests which match the spacified tag")
Expand Down Expand Up @@ -687,6 +687,9 @@ def runCommand(args):
if not args.build_sku in args.buildSKUs:
print >>sys.stderr, "--build-sku must be one of", args.buildSKUs
sys.exit(1)
if args.func == runCommand:
if (args.build_location == defaultBuildLocation):
args.build_location = os.path.realpath(os.path.join(thisDir, "../..", "x64" if windows else "build/"+args.build_sku))
args.buildSKUs = [args.build_sku]

if args.func == listCommand:
Expand Down

0 comments on commit d5a3a89

Please sign in to comment.