File: upstream-system

package info (click to toggle)
udisks2 2.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,612 kB
  • sloc: ansic: 49,035; python: 8,537; sh: 5,574; xml: 1,490; makefile: 1,232; sed: 85
file content (19 lines) | stat: -rwxr-xr-x 506 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -e

mkdir -p /var/run/udisks2
mkdir -p /var/lib/udisks2
# collect core dump in case of a crash
ulimit -c unlimited
RC=0
# succeeding test must not write anything to stderr, as per DEP-8
src/tests/integration-test 2>&1 || RC=$?
if [ "$RC" -gt 128 ]; then
    # give it some time to write the core file
    sleep 10
    if [ -e core ]; then
        echo "test failed with code $RC and core dump, copying to artifacts"
        cp core ${AUTOPKGTEST_ARTIFACTS:-$ADT_ARTIFACTS}
    fi
fi
exit $RC