Commit 660728d9 authored by Adrian DC's avatar Adrian DC
Browse files

test(interruptions): add coverage of 'Skipped (Interrupted)' job log

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent e7237182
Loading
Loading
Loading
Loading
+5 −0
Changes for tests/interruptions/.gitlab-ci.yml: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -7,4 +7,9 @@ stages:
  stage: interruptions
  script:
    - echo 'Job 1'

'Job 2':
  stage: interruptions
  script:
    - echo 'Job 2'
    - sleep 10
+3 −2
Changes for tests/interruptions/test.sh: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -9,5 +9,6 @@ cd "${test_path}/"
set -ex

# Run tests
timeout 10 timeout -k 8 -s SIGINT 5 gcil 'Job 1' && exit 1 || true
timeout 10 timeout -k 8 -s SIGINT 5 gcil -H 'Job 1' && exit 1 || true
timeout 10 timeout -k 8 -s SIGINT 5 gcil 'Job 2' && exit 1 || true
timeout 10 timeout -k 8 -s SIGINT 5 gcil -H 'Job 2' && exit 1 || true
timeout 12 timeout -k 10 -s SIGINT 6 gcil -p && exit 1 || true