revng / revng-qa

Source for rev.ng test cases
GNU General Public License v2.0
6 stars 12 forks source link

common.sh: Delete temporaries #15

Closed mrjackv closed 1 year ago

mrjackv commented 1 year ago

When running tests, the temp function would be used in a subshell in a similar vein to $(mktemp) to create a temporary file/folder. In order to track these files an array was used, however due to the use of a subshell this variable would not be propagated to the parent process. Instead, this commit uses a temporary file to store the paths of the newly created files/folders so that they can be later deleted by the parent process.

aleclearmind commented 1 year ago

Merged in 6e555be. Thanks!