diff options
Diffstat (limited to 'meta/classes/rootfs-postcommands.bbclass')
-rw-r--r-- | meta/classes/rootfs-postcommands.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass index a2fe3dea2b..6cec23ef1a 100644 --- a/meta/classes/rootfs-postcommands.bbclass +++ b/meta/classes/rootfs-postcommands.bbclass | |||
@@ -328,7 +328,7 @@ python write_image_test_data() { | |||
328 | searchString = "%s/"%(d.getVar("TOPDIR")).replace("//","/") | 328 | searchString = "%s/"%(d.getVar("TOPDIR")).replace("//","/") |
329 | export2json(d, testdata_name, searchString=searchString, replaceString="") | 329 | export2json(d, testdata_name, searchString=searchString, replaceString="") |
330 | 330 | ||
331 | if os.path.exists(testdata_name): | 331 | if os.path.exists(testdata_name) and link_name: |
332 | testdata_link = os.path.join(deploy_dir, "%s.testdata.json" % link_name) | 332 | testdata_link = os.path.join(deploy_dir, "%s.testdata.json" % link_name) |
333 | if os.path.lexists(testdata_link): | 333 | if os.path.lexists(testdata_link): |
334 | os.remove(testdata_link) | 334 | os.remove(testdata_link) |