Skip to content

Commit ad7be98

Browse files
author
Simon MacMullen
committed
erl_call treats all communication with the node as success, so try to emulate it.
1 parent 95d0728 commit ad7be98

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,11 @@ run-node: all
161161
RABBITMQ_SERVER_START_ARGS="$(RABBITMQ_SERVER_START_ARGS)" \
162162
./scripts/rabbitmq-server
163163

164+
# erl_call treats all communication with the node as success, so we
165+
# have to emulate it.
164166
run-tests: all
165-
echo "rabbit_tests:all_tests()." | $(ERL_CALL)
167+
erl -sname foo -noinput -eval \
168+
"case rpc:call(rabbit@$(shell hostname -s), rabbit_tests, all_tests, []) of passed -> halt(0); E -> io:format(\"~n~p~n~n\", [E]), halt(1) end."
166169

167170
start-background-node:
168171
$(BASIC_SCRIPT_ENVIRONMENT_SETTINGS) \

0 commit comments

Comments
 (0)