diff options
author | Russ Allbery <eagle@eyrie.org> | 2014-01-06 11:12:49 -0800 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2014-01-06 12:25:08 -0800 |
commit | 530fa51c84fddd82d5218a81d40ddd2248bde503 (patch) | |
tree | 61de227e5c90c1467601e4130e58854ed5619add /ruby | |
parent | 2aa939fde8a165ab5f374cb61ac43cbec81740c8 (diff) |
Suppress errors in test suite from kinit probing
We have to try multiple different command-line options for kinit
since MIT and Heimdal are different, and MIT now reports errors
to standard error. Supress standard error when doing this probing
in the Python and Ruby test suites.
Change-Id: I836be58da9b7cbea4ec6a140b7a29080f5ad4c9f
Reviewed-on: https://gerrit.stanford.edu/1364
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/test_remctl.rb.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby/test_remctl.rb.in b/ruby/test_remctl.rb.in index 34b5b42..574a69b 100644 --- a/ruby/test_remctl.rb.in +++ b/ruby/test_remctl.rb.in @@ -1,7 +1,7 @@ # Test suite for remctl Ruby bindings. # # Written by Russ Allbery <eagle@eyrie.org> -# Copyright 2010, 2012 +# Copyright 2010, 2012, 2014 # The Board of Trustees of the Leland Stanford Junior University # # See LICENSE for licensing terms. @@ -58,7 +58,7 @@ module Helpers 'kinit -t config/keytab ' + @principal, 'kinit -k -K config/keytab ' + @principal] commands.each do |command| - if system(command + ' >/dev/null </dev/null') + if system(command + ' >/dev/null 2>&1 </dev/null') return true end end |