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 #1

Updated by okurz almost 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.

Actions #2

Updated by okurz almost 3 years ago

  • Related to action #94060: unstable test t/ui/18-tests-details.t added
Actions #3

Updated by mkittler almost 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.

Actions #4

Updated by mkittler almost 3 years ago

  • Status changed from Workable to In Progress
Actions #5

Updated by mkittler almost 3 years ago

  • Status changed from In Progress to Feedback
Actions #6

Updated by mkittler almost 3 years ago

PR has been merged

Actions #7

Updated by mkittler almost 3 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF