summaryrefslogtreecommitdiff
path: root/piglit-run.py
diff options
context:
space:
mode:
authorKenney Phillis <kphillisjr@gmail.com>2013-05-15 22:00:07 -0500
committerDylan Baker <baker.dylan.c@gmail.com>2013-05-16 03:10:17 -0700
commitc1624a9fc21bf9f6e36ab06db847bce041a34e9f (patch)
tree6921c379b42ca44305f6d1dfc314673e796bc5f0 /piglit-run.py
parentd83fe0d38421343bd9c6a05fe30a569a16263887 (diff)
piglit-run.py: 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: Kenney Phillis <kphillisjr@gmail.com> v2: Correct whitespace errors Convert tabs to spaces Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
Diffstat (limited to 'piglit-run.py')
-rwxr-xr-xpiglit-run.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/piglit-run.py b/piglit-run.py
index 58ab18377..983e67e20 100755
--- a/piglit-run.py
+++ b/piglit-run.py
@@ -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
else:
profileFilename = args.testProfile
- resultsDir = args.resultsPath
# Pass arguments into Environment
env = core.Environment(concurrent=args.concurrency,