ASTF: fix chmod 777 on json file in case of error
ASTF: fix chmod 777 on json file in case of error

Change-Id: I561276b40790b6f8fb5fb28e66ed37c3fc7777c4

dimagol/trex-core,dimagol/trex-core,kisel/trex-core,kisel/trex-core,dimagol/trex-core,kisel/trex-core,dimagol/trex-core,kisel/trex-core,dimagol/trex-core,kisel/trex-core,dimagol/trex-core,kisel/trex-core