Bug 2778 - Dogtail's scratch directory (/tmp/dogtail) can't be overridden from command line
Summary: Dogtail's scratch directory (/tmp/dogtail) can't be overridden from command line
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P3 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 2777
  Show dependency treegraph
 
Reported: 2006-06-15 14:57 UTC by Andrew Cagney
Modified: 2006-11-28 16:52 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2006-06-15 14:57:41 UTC
Dogtail creates and uses the directory /tmp/dogtail (it's configurable but only
by root editing a file in /usr) for its scratch files.

It should be possible to override that directory, in the case of frysk's test
framework, to be a directory within frysk's build tree.

----

Hmm, need a testcase for frysk-gtk/tests/ is that even possible?
Comment 1 Andrew Cagney 2006-06-15 15:17:18 UTC
Upstream bug:
http://bugzilla.gnome.org/show_bug.cgi?id=345018
Comment 2 Andrew Cagney 2006-06-15 18:57:27 UTC
------- Comment #2 from Zack Cerza  2006-06-15 18:52 UTC -------
Actually, you can change the directories that dogtail uses quite easily:

import os
from dogtail.config import config
config.scratchDir = os.path.join(os.environ['HOME'], 'dogtail')
config.logDir = os.path.join(config.scratchDir, 'logs')
config.dataDir = os.path.join(config.scratchDir, 'data')

This will put everything in ~/dogtail/ . It also creates the directories.

I thought I had documented this, but it seems I neglected to. I just did,
though, in CVS.