File: issue745.sh

package info (click to toggle)
duplicity 3.0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,260 kB
  • sloc: python: 25,089; sh: 934; ansic: 392; makefile: 83
file content (35 lines) | stat: -rwxr-xr-x 846 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash


trap "echo Exit detected." EXIT

cd `dirname $0`/../..

export PYTHONPATH=`pwd`

rm -rf /tmp/issue745 ~/.cache/duplicity/issue745

ARGS="--no-enc --no-com --vol=1 --num-ret=2 --backend-ret=3
      --async --name=issue745 --log-timestamp -v=d
      /bin fortestsonly:///tmp/issue745"
echo "Common args:" ${ARGS}

# export PYDEVD=vscode
export DUP_FAIL_WITH_EXCEPTION=vol2.difftar
bin/duplicity full ${ARGS} &
PID=$!
sleep 15
if ps -p ${PID} > /dev/null; then
    echo
    echo "Test failed. Task is hung.  Killing."
    pkill -P ${PID}
    echo "Removing failed task lockfile"
    rm -f ~/.cache/duplicity/issue745/lockfile
    echo
fi
ls -lh /tmp/issue745 ~/.cache/duplicity/issue745

# echo "Press ENTER to check if 2nd full run will recover."
# read
# bin/duplicity full ${ARGS}
# ls -lh /tmp/issue745 ~/.cache/duplicity/issue745