Project

General

Profile

Actions

action #92800

closed

tests: Can't open file "t/data/openqa/share/tests/opensuse/needles/inst-timezone-text.json"

Added by tinita almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2021-05-18
Due date:
% Done:

0%

Estimated time:

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


Related issues 1 (0 open1 closed)

Related to openQA Project - action #94060: unstable test t/ui/18-tests-details.tResolvedmkittler2021-06-152021-07-01

Actions
Actions

Also available in: Atom PDF