Actions
action #92800
closedtests: Can't open file "t/data/openqa/share/tests/opensuse/needles/inst-timezone-text.json"
Description
Observation¶
In a clean openQA working copy
% make test TESTS=t/ui/18-tests-details.t
...
t/ui/18-tests-details.t ..
[INFO] using database schema "tmp_MkpqDRMaUzJBpXVs"
Can't open file "t/data/openqa/share/tests/opensuse/needles/inst-timezone-text.json": No such file or directory at t/ui/18-tests-details.t line 47.
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
I suppose the t/data/openqa/share/tests/opensuse/needles
is created by another test:
t/ui/12-needle-edit.t
my $dir = path('t/data/openqa/share/tests/opensuse/needles')->remove_tree->make_path;
and nobody noticed because we never delete such files, and tests are rarely run isolated without having run all tests before.
Acceptance criteria¶
- AC1:
make test TESTS=t/ui/18-tests-details.t
passes in a clean checkout without other tests running in before
Suggestions¶
My suggestion is to delete all temp files after each test and do an extra test afterwards if the git status is clean.
Workaround¶
Run make test TESTS=t/ui/12-needle-edit.t
first
Updated by okurz over 3 years ago
- Description updated (diff)
- Status changed from New to Workable
- Target version changed from future to Ready
As people just hit this again I refined it and will add it to our backlog.
Updated by okurz over 3 years ago
- Related to action #94060: unstable test t/ui/18-tests-details.t added
Updated by mkittler over 3 years ago
- Assignee set to mkittler
Assigning myself because I ran into it when testing #94060. Likely it makes sense to fix this problem right away as well.
Updated by mkittler over 3 years ago
- Status changed from Workable to In Progress
Updated by mkittler over 3 years ago
- Status changed from In Progress to Feedback
Actions