Skip to content

Commit 91af0a8

Browse files
authored
Merge pull request #7261 from Martchus/unhandled-output-subrepo
test: Check for unhandled output by default
2 parents eb6ff78 + 5d58297 commit 91af0a8

17 files changed

Lines changed: 86 additions & 54 deletions

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ TESTS ?=
1717
# EXTRA_PROVE_ARGS: Additional prove arguments to pass
1818
EXTRA_PROVE_ARGS ?=
1919
# PROVE: Test application for Perl tests
20-
PROVE ?= prove
20+
PROVE ?= tools/prove_wrapper
2121
# Number of parallel jobs for prove
2222
PROVE_JOBS ?= $(shell nproc 2>/dev/null || echo 1)
2323
PROVE_JOBS_ARGS ?= -j$(PROVE_JOBS)

docs/Contributing.asciidoc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -328,16 +328,14 @@ We use annotations in some places to mark "uncoverable" code such as this:
328328

329329
See the docs for details https://metacpan.org/pod/Devel::Cover
330330

331-
To run the tests with a different command than `prove` you can set the
332-
`PROVE` variable in the Makefile. For example, in our CircleCI tests we
333-
use `tools/prove_wrapper` to run the tests. This wrapper is a simple script that
334-
will run `prove` and fail the test if there is unhandled output. This is useful
335-
to avoid having unhandled output in tests. To run the tests with
336-
`tools/prove_wrapper` you can do:
331+
We use `tools/prove_wrapper` to run the tests. This wrapper is a simple script
332+
that will run `prove` and fail the test if there is unhandled output. This is
333+
useful to avoid having unhandled output in tests. To run tests directly with
334+
`prove`, set the `PROVE` variable when invoking `make`, e.g.:
337335

338336
[source,sh]
339337
----
340-
PROVE=tools/prove_wrapper make test TESTS=t/foo.t
338+
PROVE=prove make test TESTS=t/foo.t
341339
----
342340

343341
There are some ways to save some time when executing local tests:

external/os-autoinst-common/.github/workflows/base-commit-message-checker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ jobs:
77
base-check-commit-message:
88
name: Check commit message
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
1012
steps:
11-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1214
with:
1315
fetch-depth: 0
1416
- name: Install gitlint

external/os-autoinst-common/.github/workflows/commit-message-checker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ on:
1010

1111
jobs:
1212
check-commit-message:
13+
permissions:
14+
contents: read
1315
uses: ./.github/workflows/base-commit-message-checker.yml

external/os-autoinst-common/.github/workflows/perl-author-tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ on: [push, pull_request]
55

66
jobs:
77
perl-author-tests:
8+
permissions:
9+
contents: read
810
runs-on: ubuntu-latest
911
name: Perl author tests
1012
container:
1113
image: registry.opensuse.org/devel/openqa/containers/os-autoinst_dev
1214
steps:
13-
- uses: actions/checkout@v4
14-
- run: make test-author
15+
- uses: actions/checkout@v6
16+
- run: |
17+
git config --system --add safe.directory "$GITHUB_WORKSPACE"
18+
make test-author

external/os-autoinst-common/.github/workflows/perl-lint-checks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on: [push, pull_request]
55

66
jobs:
77
perl-lint-checks:
8+
permissions:
9+
contents: read
810
runs-on: ubuntu-latest
911
name: "Perltidy"
1012
container:
1113
image: registry.opensuse.org/devel/openqa/containers/os-autoinst_dev
1214
steps:
13-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v6
1416
- run: GITHUB_ACTIONS=1 make test-tidy

external/os-autoinst-common/.github/workflows/test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ on: [push, pull_request]
55

66
jobs:
77
test:
8+
permissions:
9+
contents: read
810
runs-on: ubuntu-latest
911
container:
1012
image: perldocker/perl-tester
1113
steps:
12-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1315
- run: make test-t

external/os-autoinst-common/.github/workflows/yamllint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ on: [push, pull_request]
66
jobs:
77
yaml-lint:
88
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
911
name: "YAML-lint"
1012
steps:
11-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1214
- uses: docker://registry.opensuse.org/home/okurz/container/containers/tumbleweed:yamllint
1315
with:
1416
entrypoint: make

external/os-autoinst-common/.gitrepo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[subrepo]
77
remote = git@github.com:os-autoinst/os-autoinst-common.git
88
branch = master
9-
commit = 7bbf40822c49031520d5d287daf89b8fdfe21fb8
10-
parent = 1377209de4a732645afc526176fd4a65dc4d60b6
9+
commit = 4e71e20292cd76298e53e9726e4d2b49be0eb7e0
10+
parent = e5bc742416a9bcb03b24716c89c3a23c380625df
1111
method = merge
1212
cmdver = 0.4.6

external/os-autoinst-common/.perlcriticrc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ add_themes = community
2424
max_nests = 4
2525

2626
# == Community Policies
27-
# -- Test::Most brings in strict & warnings
28-
[Freenode::StrictWarnings]
29-
extra_importers = Test::Most
30-
3127
# -- Test::Most brings in strict & warnings
3228
[Community::StrictWarnings]
3329
extra_importers = Test::Most

0 commit comments

Comments
 (0)