[Bash-completion-devel] [bash-completion-Bugs][313893] _known_hosts_real.exp: unit test failure caused by ruptime

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Tue Nov 6 15:57:17 UTC 2012


bash-completion-Bugs item #313893, was opened at 2012-11-06 19:57 by Igor Murzov
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313893&group_id=100114

Status: Open
Priority: 3
Submitted By: Igor Murzov (garik-guest)
Assigned to: Ville Skyttä  (scop-guest)
Summary: _known_hosts_real.exp: unit test failure caused by ruptime 
Distribution: None
Originally reported in: None
Milestone: None
Status: Accepted
Original bug number: 


Initial Comment:
_known_hosts_real.exp fails when ruptime is installed, but not configured properly:
-----------------------------------------------------
$ ./runUnit _known_hosts_real.exp
WARNING: Couldn't find the global config file.
Test Run By lxuser on Tue Nov  6 19:45:39 2012
Native configuration is x86_64-unknown-linux-gnu

		=== unit tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using ./config/default.exp as tool-and-target-specific interface file.
Running ./unit/_known_hosts_real.exp ...
FAIL: Hosts should be put in COMPREPLY
FAIL: Hosts should have username prefix and colon suffix
FAIL: Empty COMP_KNOWN_HOSTS_WITH_HOSTFILE should omit HOSTFILE

		=== unit Summary ===

# of expected passes		1
# of unexpected failures	3
# of unresolved testcases	2
/home/lxuser/Projects/bash-completion/test, bash-4.2.37(2)-release
-----------------------------------------------------

The root cause of the failure is ruptime -- it sends a warning message to stdout, when it's not configured:
-----------------------------------------------------
$ ruptime
ruptime: no hosts in /var/spool/rwho.
-----------------------------------------------------

_known_hosts_real() treats this line as valid and puts "ruptime:" string to the list of known hosts.



----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313893&group_id=100114



More information about the Bash-completion-devel mailing list