gitlab-ci: Vulkan tracie runner to return last command exit code
authorAndres Gomez <agomez@igalia.com>
Tue, 7 Apr 2020 15:38:12 +0000 (18:38 +0300)
committerAndres Gomez <agomez@igalia.com>
Tue, 14 Apr 2020 13:06:51 +0000 (16:06 +0300)
No need to cache the return value if there is only a single trace
execution call.

Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Reviewed-by: Rohan Garg <rohan.garg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4496>

.gitlab-ci/tracie-runner-vk.sh

index 6f0c46fd41562aa6b66f56b368c8d46d46702f46..f234f57a283ab183730789e584dc10b44e6ae033 100755 (executable)
@@ -28,8 +28,6 @@ export DXVK_STATE_CACHE=0
 MESA_VERSION=$(cat "$INSTALL/VERSION" | sed 's/\./\\./g')
 vulkaninfo | grep "Mesa $MESA_VERSION\(\s\|$\)"
 
-ret=0
-
 # Run gfxreconstruct traces against the host's running X server (xvfb
 # doesn't have DRI3 support).
 # Set the DISPLAY env variable in each gitlab-runner's configuration
@@ -37,5 +35,3 @@ ret=0
 # https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runners-section
 PATH="/gfxreconstruct/build/bin:$PATH" \
     python3 $INSTALL/tracie/tracie.py --file $INSTALL/traces.yml --device-name $DEVICE_NAME
-
-exit $ret