Project

General

Profile

action #92800

Updated by okurz almost 3 years ago

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

Back