Hesky has asked for the wisdom of the Perl Monks concerning the following question:
ok 4 - expect_run Expect::Simple: couldn't find prompt after send at /home/hgreen/test/Test-Expect-0.29/lib/Test/Expect.pm line 72 # Looks like your test died just after 4.
#!/bin/ksh read -r var1?"Enter foo " echo $var1
In my test program I ahve included:
use Test::More tests => 5; use Test::Cmd; use Test::Harness; use Test::Expect; use Expect::Simple; use Expect;
And the invokation looks like:
expect_run( command => "/bbcm/devtools/tools/autoplink/tst", prompt => 'Enter foo ', quit => 'quit', ); expect('foo', 'foo', "expect"); expect_send('foo', "expect_send1");
Edit g0n - added code tags
Edit g0n - retitled from "Test::Expect"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Test::Expect : expect_send() dies
by davidrw (Prior) on Jul 07, 2005 at 01:29 UTC | |
by Hesky (Initiate) on Jul 07, 2005 at 15:21 UTC |