diff options
author | Bill Peck <bpeck@redhat.com> | 2013-01-30 14:50:57 -0500 |
---|---|---|
committer | Bill Peck <bpeck@redhat.com> | 2013-01-30 14:50:57 -0500 |
commit | 3641fc26b8db4921d961468b8c9ecceae3fd4eab (patch) | |
tree | 0002a7cd23146f78f89527eb75afa779adcea2b7 /kernel/networking | |
parent | 86d15a97b1d70118e3b0a562073681c69850326d (diff) | |
download | tests-3641fc26b8db4921d961468b8c9ecceae3fd4eab.tar.gz tests-3641fc26b8db4921d961468b8c9ecceae3fd4eab.tar.xz tests-3641fc26b8db4921d961468b8c9ecceae3fd4eab.zip |
make return code capture more robust.
Diffstat (limited to 'kernel/networking')
-rwxr-xr-x | kernel/networking/libvirt/common/autologin.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/networking/libvirt/common/autologin.exp b/kernel/networking/libvirt/common/autologin.exp index 609afc6..fd390f0 100755 --- a/kernel/networking/libvirt/common/autologin.exp +++ b/kernel/networking/libvirt/common/autologin.exp @@ -32,8 +32,8 @@ for {set i 1} {$i < $argc} {incr i 1} { } #capture return code from last command -send "echo \$?\r" -expect -re "(\\d+)" { +send "echo RESULT:\$?\r" +expect -re "RESULT:(\\d+)" { set result $expect_out(1,string) } |