marcoabreu closed pull request #11476: [Nightly Tests] Fix regex which 
processes Apache RAT check output
URL: https://github.com/apache/incubator-mxnet/pull/11476
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tests/nightly/apache_rat_license_check/license_check.sh 
b/tests/nightly/apache_rat_license_check/license_check.sh
index 84accf93f70..79e86c03e59 100755
--- a/tests/nightly/apache_rat_license_check/license_check.sh
+++ b/tests/nightly/apache_rat_license_check/license_check.sh
@@ -43,7 +43,7 @@ SOURCE="^0 Unknown Licenses"
 
 echo "-------Process The Output-------"
 
-if [[ "$OUTPUT" =~ "$SOURCE" ]]; then
+if [[ "$OUTPUT" =~ $SOURCE ]]; then
       echo "SUCCESS: There are no files with an Unknown License.";
 else
       echo "ERROR: RAT Check detected files with unknown licenses. Please fix 
and run test again!";


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to