Skip to content

Commit

Permalink
Merge remote-tracking branch 'richtja/module_boundaries_plugins'
Browse files Browse the repository at this point in the history
Signed-off-by: Cleber Rosa <crosa@redhat.com>
  • Loading branch information
clebergnu committed Apr 18, 2024
2 parents 1be8815 + a6f4c1f commit 50405f5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions selftests/modules-boundaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ fi
unset LIST
unset COUNT

echo -n "* Checking for avocado.plugin imports from avocado/core: "
LIST=`git grep -E '^(import avocado\.plugins.*|from avocado\.plugins(.*)import)' avocado/core | grep -v 'avocado\.core'`
COUNT=`git grep -E '^(import avocado\.plugins.*|from avocado\.plugins(.*)import)' avocado/core | grep -v 'avocado\.core' | wc -l`
(( RESULT = RESULT + COUNT ))
echo "$COUNT"
if [ -n "$LIST" ]; then
echo "$LIST"
fi
unset LIST
unset COUNT

echo -n "* Checking for avocado imports from avocado/utils: "
LIST=`git grep -E '^(import avocado\\.*|from avocado(.*)import)' avocado/utils | grep -v 'avocado\.utils'`
COUNT=`git grep -E '^(import avocado\\.*|from avocado(.*)import)' avocado/utils | grep -v 'avocado\.utils' | wc -l`
Expand Down

0 comments on commit 50405f5

Please sign in to comment.