Back to home page

OSCL-LXR

 
 

    


0001 #!/usr/bin/env bash
0002 
0003 #
0004 # Licensed to the Apache Software Foundation (ASF) under one or more
0005 # contributor license agreements.  See the NOTICE file distributed with
0006 # this work for additional information regarding copyright ownership.
0007 # The ASF licenses this file to You under the Apache License, Version 2.0
0008 # (the "License"); you may not use this file except in compliance with
0009 # the License.  You may obtain a copy of the License at
0010 #
0011 #    http://www.apache.org/licenses/LICENSE-2.0
0012 #
0013 # Unless required by applicable law or agreed to in writing, software
0014 # distributed under the License is distributed on an "AS IS" BASIS,
0015 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0016 # See the License for the specific language governing permissions and
0017 # limitations under the License.
0018 #
0019 
0020 #
0021 # This script follows the base format for testing pull requests against
0022 # another branch and returning results to be published. More details can be
0023 # found at dev/run-tests-jenkins.
0024 #
0025 # Arg1: The Github Pull Request Actual Commit
0026 # known as `ghprbActualCommit` in `run-tests-jenkins`
0027 # Arg2: The SHA1 hash
0028 # known as `sha1` in `run-tests-jenkins`
0029 #
0030 
0031 ghprbActualCommit="$1"
0032 sha1="$2"
0033 
0034 # check PR merge-ability
0035 if [ "${sha1}" == "${ghprbActualCommit}" ]; then
0036   echo " * This patch **does not merge cleanly**."
0037 else
0038   echo " * This patch merges cleanly."
0039 fi