[test-server] missleading warning

Reto Kramer kramer@REDACTED
Mon Sep 13 17:49:11 CEST 2004


This is not a big issue, but rather confusing to the newby.

If I start a node with the {cleanup, false} option and later stop it in 
another testcase function [**], I receive the warning:

     == WARNING: Attempt to stop a nonexisting slavenode (test_a@REDACTED)
     ===          Trying to kill it anyway!!!

This warning is missleading in this context since the node is indeed 
running (left running). Perhaps the warning can be avoided by 
implicitly pinging the node beforehand?

Thanks,
- Reto


start(Config) when list(Config) ->
     ?line {ok, test_a@REDACTED} =
	?t:start_node(
	   test_a, slave,
	   [{args, "-pa /Users/reto/sdev/discover/src/discover-1.0/ebin"},
	    {cleanup, false}]), % keep node alive until stop/1
     ...

stop(Config) when list(Config) ->
     ?line pong = net_adm:ping(test_a@REDACTED), % still there

     % Note that the following warning in the output of stop/1 is 
missleading
     % since the node is in fact alive.
     %
     % == WARNING: Attempt to stop a nonexisting slavenode 
(test_a@REDACTED)
     % ===          Trying to kill it anyway!!!
     %
     ?line true = ?t:stop_node(test_a@REDACTED), % node was started in 
start/1  [**]

     ?line pang = net_adm:ping(test_a@REDACTED). % really gone

#




More information about the erlang-bugs mailing list