Debian Codegraph @

debian/tests/upstream-system

raw
1 #!/bin/sh
2 set -e
3
4 mkdir -p /var/run/udisks2
5 mkdir -p /var/lib/udisks2
6 # collect core dump in case of a crash
7 ulimit -c unlimited
8 RC=0
9 # succeeding test must not write anything to stderr, as per DEP-8
10 src/tests/integration-test 2>&1 || RC=$?
11 if [ "$RC" -gt 128 ]; then
12 # give it some time to write the core file
13 sleep 10
14 if [ -e core ]; then
15 echo "test failed with code $RC and core dump, copying to artifacts"
16 cp core ${AUTOPKGTEST_ARTIFACTS:-$ADT_ARTIFACTS}
17 fi
18 fi
19 exit $RC