From 782c60a6bf7dddcc71dbdbc4a0eea85824076fa9 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 5 Aug 2016 14:32:56 +0200 Subject: test: Pass -maxdepth 1 when running find in methods dir This fixes a test failures in the cmake branch which contains sub directories in the methods output dir. --- test/integration/test-bug-738785-switch-protocol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/integration/test-bug-738785-switch-protocol') diff --git a/test/integration/test-bug-738785-switch-protocol b/test/integration/test-bug-738785-switch-protocol index e7d4a6744..8f8216d04 100755 --- a/test/integration/test-bug-738785-switch-protocol +++ b/test/integration/test-bug-738785-switch-protocol @@ -45,7 +45,7 @@ rm "$NEWMETHODS" mkdir "$NEWMETHODS" backupIFS="$IFS" IFS="$(printf "\n\b")" -for METH in $(find "$OLDMETHODS" ! -type d); do +for METH in $(find "$OLDMETHODS" -maxdepth 1 ! -type d); do ln -s "$OLDMETHODS/$(basename "$METH")" "$NEWMETHODS" done IFS="$backupIFS" -- cgit v1.2.3