The test environment does not include a trash can
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Déjà Dup |
Fix Released
|
Low
|
Naël |
Bug Description
The trash can is normally the directory $XDG_DATA_
The test shell changes XDG_DATA_HOME to /tmp/dd-
This confused me to no end when I was hacking Déjà Dup and couldn't figure out why this exclude was not passed to duplicity.
From what I understand, this default exclude also features in a number of test scripts (in deja-dup/
Simply creating an empty trash directory in the new XDG_DATA_HOME makes the fake home environment a bit more complete, and avoids confusion about Déjà Dup appearing to not take this exclude into account. Thanks.
Trivial patch attached, can be applied to Déjà Dup's current revision 1570. All the tests (make check) pass. "DEJA_DUP_DEBUG=1 deja-dup --backup > patch.log" shows that the now-existing trash can is passed to duplicity.
Related branches
- Michael Terry: Approve
-
Diff: 55 lines (+16/-2)1 file modifiedtests/shell (+16/-2)
Changed in deja-dup: | |
assignee: | nobody → Naël (nathanael-naeri) |
status: | Triaged → In Progress |
Changed in deja-dup: | |
status: | In Progress → Fix Committed |
Changed in deja-dup: | |
assignee: | nobody → Nathanaël Naeri (Naël) (nathanael-naeri) |
Hello Nathanaël.
I can at lest confirm the bug now and will try to look into the bugfix later this week.
Best Regards
Vej