Skip to content

Commit

Permalink
Merge pull request #55 from yast/skip-expect-for-broken-devpts
Browse files Browse the repository at this point in the history
Skip Expect tests if the environment is broken.
  • Loading branch information
jreidinger committed Oct 2, 2013
2 parents 160a335 + 0f60aac commit 5ff8bc2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion agents-perl/testsuite/test-common.exp
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# common setup for test cases of ag_backgound

if { [catch {exec grep devpts.*mode=620 /proc/mounts} ] } {
# Something in our Jenkins instance remounts it with mode 600
# and then "spawn" fails.
puts "SKIP: need devpts with mode=620."
puts " See also https://bugzilla.redhat.com/show_bug.cgi?id=510183"
exit 77
}

set prog "../ag_background"
set env(PERL5LIB) "../lib"

Expand All @@ -15,7 +23,7 @@ spawn $prog $argv
match_max 100000

set timeout 15
expect_after {
expect_after {
default {
puts "OOPS"
puts "last matched <<$expect_out(buffer)>>"
Expand Down

0 comments on commit 5ff8bc2

Please sign in to comment.