Commit ff3f66bd authored by Helga Velroyen's avatar Helga Velroyen

QA: use relative path to script location for burnin

The QA had the annoying bug that if you run burnin, it
would try to upload the burnin file from the tools/
directory relative to the working directory and not
the location of the qa_cluster.py script. If you
accidentally start the QA from a differen directory
than qa/ it would run for a long while and only
crash when it comes to the burnin part. This patch
fixes the glitch by taking the location of the
QA scripts as a reference rather than the working
directory.
Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent 07e33faf
......@@ -1277,7 +1277,9 @@ def TestClusterBurnin():
if len(instances) < 1:
raise qa_error.Error("Burnin needs at least one instance")
script = qa_utils.UploadFile(master.primary, "../tools/burnin")
burnin_file = os.path.join(os.path.dirname(os.path.realpath(__file__)),
"../tools/burnin")
script = qa_utils.UploadFile(master.primary, burnin_file)
try:
disks = qa_config.GetDiskOptions()
# Run burnin
......
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