Prevent extended tests run unexpectedly in appveyor
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 28 May 2020 09:20:50 +0000 (11:20 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 2 Jun 2020 09:34:32 +0000 (11:34 +0200)
Reason turns out that "git log -2" is picking up a merge
commit and a random commit message from the master branch.

Restore the expected behavior by using
git log -1 $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11981)

appveyor.yml

index 949d6aad50607bf946b164ea1998de7980e4304d..ccca8bb22cfa2c4a0e2493355ca1a483dd879539 100644 (file)
@@ -46,7 +46,8 @@ before_build:
     - cd ..
     - ps: >-
         if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
-            -or (&git log -2 | Select-String "\[extended tests\]") ) {
+            -or (&git log -1 $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT |
+                 Select-String "\[extended tests\]") ) {
             $env:EXTENDED_TESTS="yes"
         }