summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2013-01-30 14:50:57 -0500
committerBill Peck <bpeck@redhat.com>2013-01-30 14:50:57 -0500
commit3641fc26b8db4921d961468b8c9ecceae3fd4eab (patch)
tree0002a7cd23146f78f89527eb75afa779adcea2b7 /kernel
parent86d15a97b1d70118e3b0a562073681c69850326d (diff)
downloadtests-3641fc26b8db4921d961468b8c9ecceae3fd4eab.tar.gz
tests-3641fc26b8db4921d961468b8c9ecceae3fd4eab.tar.xz
tests-3641fc26b8db4921d961468b8c9ecceae3fd4eab.zip
make return code capture more robust.
Diffstat (limited to 'kernel')
-rwxr-xr-xkernel/networking/libvirt/common/autologin.exp4
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)
}