Account for varying mlr locations (#1086)

The expected error output for the "not-a-valid-timezone" test assumes
that mlr is invoked as mlr. Use "${MLR}" instead to cope with any
invocation path.

This also adds a regression test to catch future instances before they
get merged.

Signed-off-by: Stephen Kitt <steve@sk2.org>

Signed-off-by: Stephen Kitt <steve@sk2.org>
This commit is contained in:
Stephen Kitt 2022-08-23 20:56:47 +02:00 committed by GitHub
parent abf58f4bb5
commit cdbe8b82ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -28,6 +28,11 @@ jobs:
- name: Test
run: make check
- name: Regression tests
# We run these with a convoluted path to ensure the tests don't
# rely on a specific invocation
run: test/../mlr regtest -S
- name: PrepareArtifactNonWindows
if: matrix.os != 'windows-latest'
run: mkdir -p bin/${{matrix.os}} && cp mlr bin/${{matrix.os}}

View file

@ -1 +1 @@
mlr : unknown time zone this-is-not-a-valid-timezone-name
${MLR} : unknown time zone this-is-not-a-valid-timezone-name