Skip to content

Commit

Permalink
Fix path to licensecheck in test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 4, 2018
1 parent aa55f3a commit 23c3731
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/code_layout/test_licenses.sh
Expand Up @@ -4,11 +4,12 @@

INCLUDE_EXTENSIONS="h|cpp|hpp|py|c"
EXCLUDE_LIST="(.*\\/(qtermwidget)\\/|ui_defaults\\.h|CREDITS|TODO|README|URI|^[^.]*$|.*\\.(?!($INCLUDE_EXTENSIONS)$))"
LICENSE_CHECK="external/licensecheck/licensecheck.pl"

DIR=$(git rev-parse --show-toplevel)

pushd "${DIR}" || exit > /dev/null
missing=$(! { external/licensecheck/licensecheck.pl -r -i "$EXCLUDE_LIST" src & licensecheck -r -i "$EXCLUDE_LIST" python; } | grep UNKNOWN)
missing=$(! { "$LICENSE_CHECK" -r -i "$EXCLUDE_LIST" src & "$LICENSE_CHECK" -r -i "$EXCLUDE_LIST" python; } | grep UNKNOWN)

popd || exit > /dev/null

Expand Down

0 comments on commit 23c3731

Please sign in to comment.