Skip to content

Commit 173c5d5

Browse files
committed
Exclude recipe with system requirements
Signed-off-by: Uilian Ries <uilianr@jfrog.com>
1 parent 3ee94b7 commit 173c5d5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/scripts/validate-cci-patch-ng.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ set -euo pipefail
55
SAMPLE_RECIPES_NUM=10
66

77
# Find all conanfile.py files that use apply_conandata_patches
8-
RECIPES=$(find . -type f -name "conanfile.py" -exec grep "apply_conandata_patches(self)" {} + | sort | uniq | cut -d':' -f1)
8+
RECIPES=$(find . -type f -name "conanfile.py" -exec grep -l "apply_conandata_patches(self)" {} + | sort | uniq)
9+
# And does not need system requirement
10+
RECIPES=$(grep -L "/system" $RECIPES)
911

1012
echo "Found $(echo "$RECIPES" | wc -l) recipes using apply_conandata_patches."
1113

12-
# Pick 10 random recipes
1314
SAMPLE_RECIPES=$(shuf -e ${RECIPES[@]} -n $SAMPLE_RECIPES_NUM)
1415

1516
echo "Pick $SAMPLE_RECIPES_NUM random recipes to test:"

0 commit comments

Comments
 (0)