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 ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: Fix the tests to not pollute the data directory
- From: Raphaël Hertzog <hertzog@debian.org>
- Date: Tue, 08 Jul 2014 00:20:10 +0200
- Message-id: <[🔎] 20140707222010.24402.3362.reportbug@x230-buxy.home.ouaza.com>
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 ---
- To: Christophe Siraut <d@tobald.eu.org>, 754143-done@bugs.debian.org
- Subject: Re: Bug#754143: Fix the tests to not pollute the data directory
- From: Raphael Hertzog <hertzog@debian.org>
- Date: Sun, 13 Jul 2014 22:21:23 +0200
- Message-id: <20140713202123.GJ18337@x230-buxy.home.ouaza.com>
- In-reply-to: <[🔎] 20140713131556.GA27794@atitude.localdomain>
- References: <[🔎] 20140707222010.24402.3362.reportbug@x230-buxy.home.ouaza.com> <[🔎] 20140709120544.GA17595@LAP-FHQ-264.fedasil.be> <[🔎] 20140709125445.GE27268@x230-buxy.home.ouaza.com> <[🔎] 20140709160249.GA23606@LAP-FHQ-264.fedasil.be> <[🔎] 20140710092143.GB14210@x230-buxy.home.ouaza.com> <[🔎] 20140711144418.GA11681@LAP-FHQ-264.fedasil.be> <[🔎] 20140712215620.GA9146@x230-buxy.home.ouaza.com> <[🔎] 20140713131556.GA27794@atitude.localdomain>
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 ---