aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-03-31 19:38:56 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-03-31 19:38:56 +0000
commit12f4bcdeec1a108be40936e4afb26d30119288ee (patch)
treefdb0095f2b5d54c4e8dce3eb61cdab977be06094
parentd364581c4ee967ccd2af9d61fb25aca4c8f681bd (diff)
downloadsos-12f4bcdeec1a108be40936e4afb26d30119288ee.tar.gz
dejagnu
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@905 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r--testsuite/config/unix.exp11
-rw-r--r--testsuite/sos.test/batchmode.exp6
2 files changed, 6 insertions, 11 deletions
diff --git a/testsuite/config/unix.exp b/testsuite/config/unix.exp
index db3331e1..e69de29b 100644
--- a/testsuite/config/unix.exp
+++ b/testsuite/config/unix.exp
@@ -1,11 +0,0 @@
-proc sos_start {} {
- global SOS
-
- send_user "starting $SOS"
- spawn $SOS
- expect {
- -re ".*root.*" { perror "Can't start $SOS"; exit 1 }
- }
-}
-
-sos_start
diff --git a/testsuite/sos.test/batchmode.exp b/testsuite/sos.test/batchmode.exp
new file mode 100644
index 00000000..ca0b11f3
--- /dev/null
+++ b/testsuite/sos.test/batchmode.exp
@@ -0,0 +1,6 @@
+set test "BATCHMODE"
+spawn /usr/sbin/sosreport --batch
+set timeout 15
+expect {
+ -re "^.*send this file to your support representative." { pass $test }
+}