[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#754143: marked as done (Fix the tests to not pollute the data directory)



Your message dated Sun, 13 Jul 2014 22:21:23 +0200
with message-id <20140713202123.GJ18337@x230-buxy.home.ouaza.com>
and subject line Re: Bug#754143: Fix the tests to not pollute the data directory
has caused the Debian Bug report #754143,
regarding Fix the tests to not pollute the data directory
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
754143: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754143
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: tracker.debian.org
Severity: minor

After a run of "./manage.py test" you get a few files in the data
directory:
data/cache: 4a1eaab869bd498dd2218b580f58a891
data/cache: 4a1eaab869bd498dd2218b580f58a891.headers
data/cache: 78016d49ce86f47b39d5712970ca07cf
data/cache: 78016d49ce86f47b39d5712970ca07cf.headers
data/cache: 99ce8528c1922aba6057158485a10285
data/cache: 99ce8528c1922aba6057158485a10285.headers
data/cache: apt-cache
data/cache: fabdbad731826600bd98665400c59da6
data/cache: fabdbad731826600bd98665400c59da6.headers
data/keyring: pubring.gpg
data/keyring: secring.gpg

The tests should always work on temporary directories and not on directories
meant for use in production. We want to be able to run tests on our production
server without risking the integrity of our data.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

--- End Message ---
--- Begin Message ---
On Sun, 13 Jul 2014, Christophe Siraut wrote:
> Here it follows. (Note I tried and failed in getting rid of methods
> import_key_from_test_file and get_test_file_path in tests_utils,
> tests_models and tests_management)

Merged, thanks. And your remark ticked my curiosity so I factorized the above
methods and used the inspect module to find out the correct path of test
data files.

Closing the bug now.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/

--- End Message ---

Reply to: