diff mbox

[3/3] xtf: fix usage of "-executable" with find

Message ID 1462544723-48415-4-git-send-email-roger.pau@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Roger Pau Monné May 6, 2016, 2:25 p.m. UTC
"-executable" is a GNU only extension to find. Instead replace it with a
POSIX compatible one.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 7657e19..fd8c3e0 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@  cscope:
 .PHONY: clean
 clean:
 	find . \( -name "*.o" -o -name "*.d" -o -name "*.lds" \) -delete
-	find tests/ \( -executable -name "test-*" -o -name "test-*.cfg" \
+	find tests/ \( -perm -a=x -name "test-*" -o -name "test-*.cfg" \
 		-o -name "test-info.json" \) -delete
 
 .PHONY: distclean