Have Kokoro accept imports from Piper
Copybara creates Gerrit changes containing a PiperOrigin-RevId: line
when importing from Piper, so accept that instead of a Bug: line.
Bug: b/148537471
Change-Id: I2c655c90c2873787054db4de22bf2f9c3526bdce
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/40731
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
diff --git a/tests/presubmit.sh b/tests/presubmit.sh
index d0b4f6a..122c51c 100755
--- a/tests/presubmit.sh
+++ b/tests/presubmit.sh
@@ -40,7 +40,7 @@
# Validate commit message
function run_bug_in_commit_msg() {
- git log -1 --pretty=%B | grep -E '^(Bug|Issue|Fixes):(\s?)(((b\/)|(\w+:))([0-9]+)|[^0-9]+)$|(^Regres:)'
+ git log -1 --pretty=%B | grep -E '^(Bug|Issue|Fixes):(\s?)(((b\/)|(\w+:))([0-9]+)|[^0-9]+)$|(^Regres:)|(^PiperOrigin-RevId:)'
if [ $? -ne 0 ]
then