Implement working directory for utils.RunCmd
authorIustin Pop <iustin@google.com>
Tue, 11 Nov 2008 03:12:05 +0000 (03:12 +0000)
committerIustin Pop <iustin@google.com>
Tue, 11 Nov 2008 03:12:05 +0000 (03:12 +0000)
commit8797df43407a57d5c52747b154ecc428c7d94696
treec6a0924234124eb0c5451ab00ebd6c5133f1b7a0
parentb14f759ee86fc08c50588d30360d386a21df35e0
Implement working directory for utils.RunCmd

In order to replace usage of the shell just for 'cd %s; ...' we need to
be able to specify the working directory for childs.

The patch also changes the default working directory (when not
specified) to "/", as opposed to the current dir; since the daemos run
with cwd=/ anyway, this should not change things.

Reviewed-by: imsnah
lib/utils.py
test/ganeti.utils_unittest.py