/usr/lib/python2.6/site-packages/pbr/tests
NameSizeModeActions
testpackage/-0755rm
base.py86830644editdlrm
base.pyc74670644editdlrm
test_commands.py29000644editdlrm
test_commands.pyc15750644editdlrm
test_core.py52690644editdlrm
test_core.pyc46520644editdlrm
test_files.py25790644editdlrm
test_files.pyc26320644editdlrm
test_hooks.py40390644editdlrm
test_hooks.pyc30440644editdlrm
test_integration.py48070644editdlrm
test_integration.pyc42400644editdlrm
test_packaging.py198810644editdlrm
test_packaging.pyc215390644editdlrm
test_setup.py172700644editdlrm
test_setup.pyc180610644editdlrm
test_util.py25310644editdlrm
test_util.pyc24740644editdlrm
test_version.py135990644editdlrm
test_version.pyc137430644editdlrm
test_wsgi.py60220644editdlrm
test_wsgi.pyc45060644editdlrm
util.py25600644editdlrm
util.pyc12990644editdlrm
__init__.py00644editdlrm
__init__.pyc1340644editdlrm
Edit: /usr/lib/python2.6/site-packages/pbr/tests/base.pyc (7467B)
Ñò ;vVc @sádZddkZddkZddkZddkZddkZddkZddkZddklZddk l Z dei fd„ƒYZ dei eifd„ƒYZd ei fd „ƒYZd „Zd „ZdS( s Common utilities used in testingiÿÿÿÿN(tcontent(toptionstDiveDircBs eZdZd„Zd„ZRS(saDive into given directory and return back on cleanup. :ivar path: The target directory. cCs ||_dS(N(tpath(tselfR((s+/tmp/pip-build-cD3xZi/pbr/pbr/tests/base.pyt__init__=scCs@tt|ƒiƒ|ititiƒƒti|iƒdS(N(tsuperRtsetUpt addCleanuptostchdirtgetcwdR(R((s+/tmp/pip-build-cD3xZi/pbr/pbr/tests/base.pyR@s(t__name__t __module__t__doc__RR(((s+/tmp/pip-build-cD3xZi/pbr/pbr/tests/base.pyR7s t BaseTestCasecBs5eZd„Zd„Zd„Zgedd„ZRS(c Cstt|ƒiƒtiiddƒ}yt|ƒ}Wntj odGHd}nX|djo |it i |dt ƒƒntiidƒt i jo8|it idƒƒi}|it id|ƒƒntiid ƒt i jo8|it id ƒƒi}|it id |ƒƒn|it id ƒƒ|_|it iƒƒ|it iƒƒ|it iƒƒ|it id dƒƒ|it iƒƒi|_tii|idƒ|_titiitiitƒdƒ|iƒ|iti ti!ƒƒti |iƒ|i|i"ƒt#|dt ƒpµ|it id ƒƒtii|idƒ}t$|dƒi%i&ƒ}z|~}|i'ƒ}WdQX|i(ddƒ}t$|dƒi%i&ƒ}z|~}|i)|ƒWdQXndS(NtOS_TEST_TIMEOUTis=OS_TEST_TIMEOUT set to invalid value defaulting to no timeoutitgentletOS_STDOUT_CAPTUREtstdouts sys.stdouttOS_STDERR_CAPTUREtstderrs sys.stderrtpbrt PBR_VERSIONs0.0t testpackaget preversioneds setup.cfgtrtuversion = 0.1.devutwt(*RRRR tenvirontgettintt ValueErrort useFixturetfixturestTimeouttTrueRt TRUE_VALUESt StringStreamtstreamt MonkeyPatcht FakeLoggert log_fixturet TempHomeDirtNestedTempfiletEnvironmentVariabletTempDirRttemp_dirtjoint package_dirtshutiltcopytreetdirnamet__file__RR R t_discard_testpackagetgetattrtopent__exit__t __enter__treadtreplacetwrite( Rt test_timeoutRRtsetup_cfg_patht_[1]tcfgRt_[2]((s+/tmp/pip-build-cD3xZi/pbr/pbr/tests/base.pyRHsH   $ &&cCsIxBttiƒD]1}|djp|idƒoti|=qqWdS(Ntpbr_testpackagespbr_testpackage.(tlisttsystmodulest startswith(Rtk((s+/tmp/pip-build-cD3xZi/pbr/pbr/tests/base.pyR5{s  cOs|itid||S(Nssetup.py(ssetup.py(t_run_cmdRDt executable(Rtargstkwargs((s+/tmp/pip-build-cD3xZi/pbr/pbr/tests/base.pyt run_setupƒscCs^|p|i}t|gt|ƒd|ƒ}|do | otd|dƒ‚n|S(sfRun a command in the root of the test working copy. Runs a command, with the given argument list, in the root of the test working copy--returns the stdout and stderr streams and the exit code from the subprocess. :param cwd: If falsy run within the test package dir, otherwise run within the named path. tcwdisCommand failed retcode=%s(R0RHRCt Exception(RtcmdRJt allow_failRMtresult((s+/tmp/pip-build-cD3xZi/pbr/pbr/tests/base.pyRH†s N(R R RR5RLR#tNoneRH(((s+/tmp/pip-build-cD3xZi/pbr/pbr/tests/base.pyRFs 3  tCapturedSubprocesscBs eZdZd„Zd„ZRS(s)Run a process and capture its output. :attr stdout: The output (a string). :attr stderr: The standard error (a string). :attr returncode: The return code of the process. Note that stdout and stderr are decoded from the bytestrings subprocess returns using error=replace. cOsbtt|ƒiƒ||_||_||_ti|idËs (RVR[RWttupleR\RZ(RJRMtptstreamststream_content((s+/tmp/pip-build-cD3xZi/pbr/pbr/tests/base.pyRHÁs cCsXtdddddgdƒtdddddgdƒtdddddgdƒdS( Ntgittconfigs--globals user.emailsexample@example.coms user.namesOpenStack Developersuser.signingkey(RHRR(((s+/tmp/pip-build-cD3xZi/pbr/pbr/tests/base.pyt _config_gitÑs (RR R1RVRDR!t testresourcest testtoolsRRRtFixtureRtTestCasetResourcedTestCaseRRSRHRm(((s+/tmp/pip-build-cD3xZi/pbr/pbr/tests/base.pyt(s       Q*