Skip to content

ocamltest: set TERM=dumb when calling OCaml-related programs#1532

Merged
gasche merged 1 commit intoocaml:trunkfrom
shindere:ocamltest-set-TERM
Dec 15, 2017
Merged

ocamltest: set TERM=dumb when calling OCaml-related programs#1532
gasche merged 1 commit intoocaml:trunkfrom
shindere:ocamltest-set-TERM

Conversation

@shindere
Copy link
Copy Markdown
Contributor

This is a follow-up to the discussion started on PR #1527

Copy link
Copy Markdown
Member

@gasche gasche left a comment

Choose a reason for hiding this comment

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

Thanks, this looks very simple indeed.

Just to make sure: you decided to pass TERM=dumb to all invocations of OCaml tools (the compiler, the toplevel and expect_test) done by ocamltest. I suppose that this is a convention to follow in the future when adding new kind of actions involving OCaml tools.

@gasche
Copy link
Copy Markdown
Member

gasche commented Dec 15, 2017

(The Travis CI fails because there is no Changes entry, despite me adding the tag. We can ignore that, but I also think that it would be reasonable to extend the expect_test-migration Changes entry to credit @sliquister (Valentin Gatien-Baron) and @nojb (Nicolás Ojeda Bär) for their additional input into the problem -- and mention the present GPR number.)

I'll let you decide what you want to do and when to merge.

@shindere
Copy link
Copy Markdown
Contributor Author

shindere commented Dec 15, 2017 via email

@gasche
Copy link
Copy Markdown
Member

gasche commented Dec 15, 2017

I think that conservative is good in this case, because indeed we probably need all TERM-depending behaviors to be controlled before they end up in test outputs.

@shindere
Copy link
Copy Markdown
Contributor Author

shindere commented Dec 15, 2017 via email

@gasche
Copy link
Copy Markdown
Member

gasche commented Dec 15, 2017

The new Changes entry is fine, thanks. I'll wait for CI results (mostly out of superstition) and merge.

@shindere
Copy link
Copy Markdown
Contributor Author

shindere commented Dec 15, 2017 via email

@v-gb
Copy link
Copy Markdown
Contributor

v-gb commented Dec 15, 2017

Looks good, thanks (I thought at first Action_helpers.run_hook should have been modified, but I don't think so anymore: it looks like it's only involved in preparing tests, not actually running them). I confirm that it works too.

The appveyor failure is a timeout, I think (during builds, not during tests, so can't blame this pull request).

@gasche gasche merged commit e2a3585 into ocaml:trunk Dec 15, 2017
@shindere
Copy link
Copy Markdown
Contributor Author

shindere commented Dec 19, 2017 via email

@v-gb
Copy link
Copy Markdown
Contributor

v-gb commented Dec 20, 2017

By the way, shouldn't this pull request have removed the TERM=dumb around ocamltest in testsuite/Makefile?

@shindere
Copy link
Copy Markdown
Contributor Author

shindere commented Dec 20, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants