Skip to contentSkip to conversation

image: Ensure we don't expand TMPDIR in image commands

PATCH New Richard Purdie 1 participant 1 message Jan 17, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image: Ensure we don't expand TMPDIR in image commands

Similarly to DATETIME, don't expand TMPDIR in image commands. This ensures some of the stamp comparisons we make in the QA tests work correctly.

meta/classes/image.bbclass +2 -0
index a2e966e..e85869d 100644
@@ -369,7 +369,9 @@ python () {
         # Delete DATETIME so we don't expand any references to it now
         # This means the task's hash can be stable rather than having hardcoded
         # date/time values. It will get expanded at execution time.
+        # Similarly TMPDIR since otherwise we see QA stamp comparision problems
         localdata.delVar('DATETIME')
+        localdata.delVar('TMPDIR')
 
         image_cmd = localdata.getVar("IMAGE_CMD", True)
         vardeps.add('IMAGE_CMD_' + realt)