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

[Pulp-list] Unit Tests and Temp Directories



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

I'm getting this when I run the unit tests:

======================================================================
ERROR: test_errata_repo_sync_rhel (test_errata.TestErrata)
- ----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jdob/vault/code/pulp/test/unit/test_errata.py", line 373,
in test_errata_repo_sync_rhel
    self.rapi.sync(r['id'])
  File
"/home/jdob/vault/code/pulp/test/unit/../../src/pulp/auditing.py", line
186, in _audit
    result = method(*args, **kwargs)
  File
"/home/jdob/vault/code/pulp/test/unit/../../src/pulp/api/repo.py", line
568, in sync
    added_packages, added_errataids = repo_sync.sync(repo, repo_source)
  File
"/home/jdob/vault/code/pulp/test/unit/../../src/pulp/api/repo_sync.py",
line 57, in sync
    repo_dir = synchronizer.sync(repo, repo_source)
  File
"/home/jdob/vault/code/pulp/test/unit/../../src/pulp/api/repo_sync.py",
line 296, in sync
    os.makedirs(repo_dir)
  File "/usr/lib64/python2.6/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/lib/pulp/test_errata_repo_sync'


/var/lib/pulp belongs to apache so I can actually run and use pulp. Can
we make sure to use a conf value for where things are stored and
override it in the tests to something in /tmp? We were doing this in the
past on the API tests to get around this issue, I'm not sure if it was
removed when the new config subsystem was introduced or just not used.

- -- 
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/

iQEcBAEBAgAGBQJMbTKoAAoJEOMmcTqOSQHC8KQH/j1sbhxd02YL905wljGSVdC6
q2sOBXfEnQN2RS2wpLWI/6897fmx7l6jzAe+LNhl0OFR2I2G9LKfpQkSK4tKbYJR
sXu6hEglenD9EDcmdx6XCRBNdgrGZrFLEbZITie4AVBTSDSyToRaNZpBqPmeF4yd
2nD7baf+24pSKi7Snw5cK2k/jfUeq+tnOLDSC415Ag22BOMwZlakU/mg1oG3kgaE
ZOk+8pbNHgo/T6tMNNAnjOISPRGzUzphIopzjUMy3R6yp+qRgLHBmmmwy0oqidum
UXzWn1KJOtff/EzRGTApfELP+5YTY/AI+ai4NEl1Sh8p8FGPK8w/phMZ17agtgw=
=MWbW
-----END PGP SIGNATURE-----


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