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

Re: [Pulp-list] Unit Tests



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/03/2010 08:36 AM, Jason Dobies wrote:
> Has anyone changed something in the configuration system recently? It's
> not loading the test overrides again and I'm getting permission errors
> on /var/lib/pulp when the tests run.

The issue was with these two lines:

+REPOS_LOCATION = "%s/%s" % (config.config.get('paths',
'local_storage'), "repos")
+PACKAGE_LOCATION = "%s/%s" % (config.config.get('paths',
'local_storage'), "packages")

Be careful to not store things based off config values at the module
level. These are only set once, so if the config changes after the fact
(like in our unit tests that need to override default values), the
values won't be updated to reflect the new configuration values.


- -- 
Jason Dobies
RHCE# 805008743336126
Freenode: jdob
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMgO4/AAoJEOMmcTqOSQHCALcH/2pw5oICFEF1EDcJEzuf876b
T3uTFSJiVpkaCK/fclmkaowQR/NRph/919/zEtG43IWU9EGZAMSdvreC2nyMbynv
YtF7Zy6AkywNDItL6qgeIAs9jfGfE3Anzkt8h9iqYxmVOnCBDbIvAlO/CPk0xRJ3
nM9nAJp4HeVzGpfOzqv8j+zA5bcmrsHRhqPNf5B/7jPQomiDstsBedjfsD1pF6vg
/dXjCW5pRh76+G6DHoF4FQc05gcFhR5YIpWx5bx45/sGhzy49MsRLb0NcZ8B7vDW
kPZpqlZyx4VBASp0+QXPthkkP717E9khFkm0t9gbCZGXiaU9kLYsUOqOqBSRdv8=
=rCXz
-----END PGP SIGNATURE-----


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