Skip to content

Commit

Permalink
hdata/test: Remove all temp files
Browse files Browse the repository at this point in the history
mktemp generates a random file name and creates a blank file with that
name in /tmp. dtdiff_wrap.sh doesn't remove the blank file, or the
re-parsed DTB file so you end up with a lot of them in /tmp.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
  • Loading branch information
oohal committed Nov 14, 2019
1 parent d807288 commit 7fddf42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hdata/test/dtdiff_wrap.sh
Expand Up @@ -12,5 +12,5 @@ cp /dev/stdin $T.dtb
dtc -I dts -O dtb $1 > $T.orig.dtb
dtdiff $T.orig.dtb $T.dtb
R=$?
if [ $R == 0 ]; then rm -f $T.dtb; fi
if [ $R == 0 ]; then rm -f $T $T.orig.dtb $T.dtb; fi
exit $R

0 comments on commit 7fddf42

Please sign in to comment.