diff --git a/selftests/checkall b/selftests/checkall index 9169bcf4740903c10e3c7ca174dd95b147dc2f98..7f0c338c9910f6273d3525709a15ac702007d6f2 100755 --- a/selftests/checkall +++ b/selftests/checkall @@ -124,16 +124,6 @@ parallel_selftests() { } -signed_off_check() { - AUTHOR="$(git log -1 --pretty='format:%aN <%aE>')" - git log -1 --pretty=format:%B | grep "Signed-off-by: $AUTHOR" - if [ $? != 0 ]; then - echo "The commit message does not contain author's signature (Signed-off-by: $AUTHOR)" - return 1 - fi -} - - results_dir_content() { NOW="$(ls $RESULTS_DIR)" if [ "$(echo $* | xargs)" != "$(echo $NOW | xargs)" ]; then @@ -164,7 +154,7 @@ run_rc lint "$LINT_CMD $PYLINT_ENABLE" run_rc indent 'inspekt indent --exclude=.git,selftests/unit/test_utils_cpu.py' run_rc style 'inspekt style --exclude=.git --disable E501,E265,W601,E402,E722' run_rc boundaries 'selftests/modules_boundaries' -run_rc signed-off-by signed_off_check +run_rc signed-off-by 'selftests/signedoff-check.sh' if [ "$AVOCADO_PARALLEL_CHECK" ]; then run_rc selftests parallel_selftests elif [ -z "$AVOCADO_SELF_CHECK" ]; then diff --git a/selftests/signedoff-check.sh b/selftests/signedoff-check.sh new file mode 100755 index 0000000000000000000000000000000000000000..a904c61b80aa9e297797f562040ca79645c6c758 --- /dev/null +++ b/selftests/signedoff-check.sh @@ -0,0 +1,8 @@ +#!/bin/sh -e + +AUTHOR="$(git log -1 --pretty='format:%aN <%aE>')" +git log -1 --pretty=format:%B | grep "Signed-off-by: $AUTHOR" +if [ $? != 0 ]; then + echo "The commit message does not contain author's signature (Signed-off-by: $AUTHOR)" + return 1 +fi