Commit c1624a9f authored by Kenney Phillis's avatar Kenney Phillis Committed by Dylan Baker Fix Path resolution.

Path resolution should always be a resolved from relative path to absolute path.
This is to allow for distributed testing where you build a single copy of
piglit and then redistribute it over a network.
Signed-off-by: default avatarKenney Phillis <>

v2: Correct whitespace errors
    Convert tabs to spaces
Reviewed-by: Dylan Baker's avatarDylan Baker <>
parent d83fe0d3
......@@ -131,11 +131,12 @@ def main():
print "Warning: Option --tests is deprecated, use " \
"--include-tests instead"
# Always Convert Results Path from Relative path to Actual Path.
resultsDir = path.realpath(args.resultsPath)
# If resume is requested attempt to load the results file
# in the specified path
if args.resume is True:
resultsDir = path.realpath(args.resultsPath)
# Load settings from the old results JSON
old_results = core.loadTestResults(resultsDir)
profileFilename = old_results.options['profile']
......@@ -148,7 +149,6 @@ def main():
# Otherwise parse additional settings from the command line
profileFilename = args.testProfile
resultsDir = args.resultsPath
# Pass arguments into Environment
env = core.Environment(concurrent=args.concurrency,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment