Commit 1621ea5b authored by stevanradakovic's avatar stevanradakovic Committed by Senthil Kumaran Shanmugasundaram

LAVA-1202 - multiple boot + test section using transfer_overlay fails

In a job with multiple boot + test sections and using transfer_overlay,
the second test job fails because the test overlay has been removed.
The overlay tarball should not be moved but rather copied so it can
be reused.

Change-Id: I2ec91104d074a5609ac105bf3866e0239bbaa214
parent fd6dbec5
......@@ -583,7 +583,7 @@ class OverlayUnpack(Action):
raise JobError("No overlay file identified for the transfer.")
overlay = os.path.basename(overlay_file).strip()
self.url = os.path.join(DISPATCHER_DOWNLOAD_DIR, overlay)
shutil.move(overlay_file, self.url)
shutil.copy(overlay_file, self.url)
self.logger.debug("Moved %s to %s", overlay_file, self.url)
dwnld = self.parameters['transfer_overlay']['download_command']
dwnld += " http://%s/tmp/%s" % (ip_addr, overlay)
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