[qmtest] os.system0 use in resource SetUp methods
Mark Mitchell
mark at codesourcery.com
Sat Nov 22 01:39:48 UTC 2003
On Fri, 2003-11-21 at 13:54, Steve Byan wrote:
> I've written a couple of test extension classes modeled on
> ShellCommandTest and ShellScriptTest which use a remote shell to
> execute the tests on a remote host specified by a "node" resource
> extension class, which selects one host from those provided in the
> context by a target extension class.
>
> I'd like to check the state of the selected host in the resource SetUp
> method. I've tried using code like this:
>
> # test that pServer is up and running
> if os.system("ping -c 3 " + remote_host + " >/dev/null") != 0:
> cause = "Can't ping " + blade + " at hostname " +
> remote_host
> result.Fail(cause=cause)
> return
Does this problem happen with the CVS version of QMTest or only with
QMTest 2.0.3? In 2.0.3, there were some bugs involving test/resource
dependencies that might have caused problems here.
I can't think of any reason that the GUI should present particular
problems here; we'll have to have more information to figure out what's
going wrong.
--
Mark Mitchell <mark at codesourcery.com>
CodeSourcery, LLC
More information about the qmtest
mailing list