[yocto] [PATCH pseudo 1/2] test-umask: clear state before test

Rabin Vincent rabin.vincent at axis.com
Sat Oct 1 08:03:47 PDT 2016


From: Rabin Vincent <rabinv at axis.com>

test-umask fails if run twice.  Make it remove the created temporary
files before the test.

Signed-off-by: Rabin Vincent <rabinv at axis.com>
---
 test/test-umask.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/test-umask.sh b/test/test-umask.sh
index 48cb3b1..8ca4963 100755
--- a/test/test-umask.sh
+++ b/test/test-umask.sh
@@ -4,6 +4,8 @@ mode() {
 	ls -l "$1" | awk '{ print $1 }'
 }
 
+rm -f a b
+
 # Verify normal operation...
 umask 022
 touch a
-- 
2.1.4




More information about the yocto mailing list