summaryrefslogtreecommitdiffstats
path: root/vsperf
diff options
context:
space:
mode:
authorOtto Sabart <osabart@redhat.com>2016-10-10 10:46:19 +0200
committerOtto Sabart <seberm@seberm.com>2016-10-11 12:33:14 +0000
commita4e76fdb316d3f7901f24f36e077c6936bd679c2 (patch)
tree806176fdae12527173bdf64ddeaf1287f55b51cd /vsperf
parent1dfb1ffbcedf8208c14343fa4b8a7f125ff3a30d (diff)
vsperf: launch should not depend on current $PWD
JIRA: VSPERF-392 Change-Id: I44866b7d3298617003b87b015eb08bf32c4014f7 Signed-off-by: Otto Sabart <osabart@redhat.com>
Diffstat (limited to 'vsperf')
-rwxr-xr-xvsperf13
1 files changed, 8 insertions, 5 deletions
diff --git a/vsperf b/vsperf
index a12560da..5bfa2abe 100755
--- a/vsperf
+++ b/vsperf
@@ -54,12 +54,15 @@ VERBOSITY_LEVELS = {
'critical': logging.CRITICAL
}
-_TEMPLATE_RST = {'head' : 'tools/report/report_head.rst',
- 'foot' : 'tools/report/report_foot.rst',
+_CURR_DIR = os.path.dirname(os.path.realpath(__file__))
+
+_TEMPLATE_RST = {'head' : os.path.join(_CURR_DIR, 'tools/report/report_head.rst'),
+ 'foot' : os.path.join(_CURR_DIR, 'tools/report/report_foot.rst'),
'final' : 'test_report.rst',
- 'tmp' : 'tools/report/report_tmp_caption.rst'
+ 'tmp' : os.path.join(_CURR_DIR, 'tools/report/report_tmp_caption.rst')
}
+
_LOGGER = logging.getLogger()
def parse_arguments():
@@ -482,11 +485,11 @@ def main():
# configure settings
- settings.load_from_dir('conf')
+ settings.load_from_dir(os.path.join(_CURR_DIR, 'conf'))
# Load non performance/integration tests
if args['integration']:
- settings.load_from_dir('conf/integration')
+ settings.load_from_dir(os.path.join(_CURR_DIR, 'conf/integration'))
# load command line parameters first in case there are settings files
# to be used