Skip to content

Properly kill OS daemons during test#587

Merged
nickva merged 1 commit into
apache:masterfrom
cloudant:os-daemons-timeout
Jun 8, 2017
Merged

Properly kill OS daemons during test#587
nickva merged 1 commit into
apache:masterfrom
cloudant:os-daemons-timeout

Conversation

@nickva
Copy link
Copy Markdown
Contributor

@nickva nickva commented Jun 8, 2017

Even if it clean up fails use kill to avoid failing the next set of tests.

Issue: #571

catch
{timeout, os_daemon_stop} ->
Msg = "WARNING: OS daemons test stop ~p msec timeout exceeded",
io:format(standard_error, Msg, [?TIMEOUT]),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot ~n at the end, but why io:format/3 and not ?debugFmt/2?

Copy link
Copy Markdown
Contributor Author

@nickva nickva Jun 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point will add the ~n.

Thought of ?debugMsg but remembered @janl's observation that he didn't see ?debugMsg lines in the logs.

?debugMsg docs say it outputs to console. Wonder if when running in Travis console and stderr end up being two different things...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect it has something to do with how rebar sets DEBUG - NODEBUG macros, but not sure, maybe it is how travis treats stdout and stderr.

Even if it clean up fails use `kill` to avoid failing the next set of tests.

Issue: apache#571
@nickva nickva force-pushed the os-daemons-timeout branch from 9911f55 to 70ed871 Compare June 8, 2017 16:41
Copy link
Copy Markdown
Member

@eiri eiri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  [done in 7.409 s]
=======================================================
  All 1154 tests passed.

+1

@nickva nickva merged commit b45ed88 into apache:master Jun 8, 2017
@nickva nickva deleted the os-daemons-timeout branch June 8, 2017 19:36
nickva pushed a commit to nickva/couchdb that referenced this pull request Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants