Skip to content
Permalink
Browse files

Fix path to licensecheck in test

  • Loading branch information
nyalldawson committed Jun 4, 2018
1 parent aa55f3a commit 23c373112192e6072019ef6bfa1c1e8add80960f
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/code_layout/test_licenses.sh
@@ -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

0 comments on commit 23c3731

Please sign in to comment.
You can’t perform that action at this time.