~mterry/deja-dup/midnight-epoch

« back to all changes in this revision

Viewing changes to tests/scripts/instance-error.test

  • Committer: Michael Terry
  • Date: 2013-01-24 14:34:01 UTC
  • mfrom: (1429.1.2 tempdir)
  • Revision ID: michael.terry@canonical.com-20130124143401-luilvsfo3l28la22
Tell duplicity to use a tempdir that is on the same partition as the source files (to avoid filling up small /tmp partitions)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Make sure we correctly bubble up an error message from
 
2
# DuplicityInstance.start().  In this case, an error about spawning duplicity.
 
3
 
 
4
[Operation]
 
5
Type=backup
 
6
# Delete mockscript ourselves, because the runner will notice that it is still
 
7
# there and fail.  Since we never run our mock duplicity, it is never cleaned
 
8
# naturally.  Also symlink python3 since the mock duplicity needs it
 
9
Script=mkdir -p @TEST_HOME@/mockcopy && cp -r @MOCK_DIR@/* @TEST_HOME@/mockcopy && ln -s `which python3` @TEST_HOME@/mockcopy/python3
 
10
Path=@TEST_HOME@/mockcopy
 
11
Success=false
 
12
Error=Failed to execute child process "duplicity" (No such file or directory)
 
13
 
 
14
[Duplicity]
 
15
Runs=status;dry;
 
16
 
 
17
[Duplicity status]
 
18
# We let duplicity go for one operation to let it get initialized (i.e. we
 
19
# don't want to mess up any of its early calls like --version).
 
20
# Also clean the mockscript out since our mock won't be doing it.
 
21
Script=/bin/rm @TEST_HOME@/mockcopy/duplicity @TEST_HOME@/mockscript