diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-29 20:06:27 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-29 20:06:27 -0500 |
commit | 1a66c3f33c4ccbdf1c430c0d6af3d028ef261d4b (patch) | |
tree | 9e72bd42e5aca82148abaaa5f49ffab0d6678e22 /libbe/command | |
parent | 182a44a4a284e118da03c1182f2b9a8b76dd0d93 (diff) | |
download | bugseverywhere-1a66c3f33c4ccbdf1c430c0d6af3d028ef261d4b.tar.gz |
Don't chdir() in libbe/command/html.py doctests.
Diffstat (limited to 'libbe/command')
-rw-r--r-- | libbe/command/html.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/libbe/command/html.py b/libbe/command/html.py index 059fe75..99cd61f 100644 --- a/libbe/command/html.py +++ b/libbe/command/html.py @@ -41,22 +41,19 @@ class HTML (libbe.command.Command): >>> cmd._setup_io = lambda i_enc,o_enc : None >>> cmd.stdout = sys.stdout - >>> cwd = os.getcwd() - >>> os.chdir(bd.storage.repo) - >>> ret = cmd.run() - >>> os.path.exists('./html_export') + >>> ret = cmd.run({'output':os.path.join(bd.storage.repo, 'html_export')}) + >>> os.path.exists(os.path.join(bd.storage.repo, 'html_export')) True - >>> os.path.exists('./html_export/index.html') + >>> os.path.exists(os.path.join(bd.storage.repo, 'html_export', 'index.html')) True - >>> os.path.exists('./html_export/index_inactive.html') + >>> os.path.exists(os.path.join(bd.storage.repo, 'html_export', 'index_inactive.html')) True - >>> os.path.exists('./html_export/bugs') + >>> os.path.exists(os.path.join(bd.storage.repo, 'html_export', 'bugs')) True - >>> os.path.exists('./html_export/bugs/a.html') + >>> os.path.exists(os.path.join(bd.storage.repo, 'html_export', 'bugs', 'a.html')) True - >>> os.path.exists('./html_export/bugs/b.html') + >>> os.path.exists(os.path.join(bd.storage.repo, 'html_export', 'bugs', 'b.html')) True - >>> os.chdir(cwd) >>> bd.cleanup() """ name = 'html' |