Make testSignal unittest not depend on default shell
authorIustin Pop <iustin@google.com>
Sat, 21 Jun 2008 08:14:04 +0000 (08:14 +0000)
committerIustin Pop <iustin@google.com>
Sat, 21 Jun 2008 08:14:04 +0000 (08:14 +0000)
commit4ce6958edffa6bf4f17615bd0cc2933727c92cb3
tree036c02bd7aec47a816b7ba2dab0b26f0b1bd8e5c
parenta710558d997ee3e4d1533b70ef59575b3ae681e7
Make testSignal unittest not depend on default shell

This patch changes the code executed when testing the signal handling
of RunCmd. Since sh does not always point to bash (e.g. on Ubuntu,
where it points to /bin/dash) this test might fail due to the returned
exit code is different so the received signal is not correctly
detected.

Additionally fix the docstring of testSignal.

(This is a backport from trunk)

Reviewed-by: iustinp

From: Manuel Franceschini <manuel.franceschini@gmail.com>
test/ganeti.utils_unittest.py