Project

General

Profile

action #178180

Updated by tinita 2 months ago

## Observation 
 From `prove -l t/14-grutasks.t` I get 

 ``` 
 12:23:12] ./t/14-grutasks.t ......................... 24/? 
     #     Failed test 'needle temp dir determined as expected' 
     #     at ./t/14-grutasks.t line 416. 
     #            got: './t/data/openqa/webui/cache/needle-refs' 
     #       expected: 't/data/openqa/webui/cache/needle-refs' 
     # Looks like you failed 1 test of 3. 

 #     Failed test 'limit_temp_needle_refs task cleans up temp needle refs exceeding retention' 
 #     at ./t/14-grutasks.t line 444. 
 [12:23:12] ./t/14-grutasks.t ......................... 33/? 
         #     Failed test '/tmp/14-grutasks.t-fLx1/t/data/openqa/share/factory/iso/test2.iso symlink created' 
         #     at ./t/14-grutasks.t line 749. 

         #     Failed test '/tmp/14-grutasks.t-fLx1/t/data/openqa/share/factory/iso/test2.iso points to expected destination' 
         #     at ./t/14-grutasks.t line 750. 
         #            got: '/home/okurz/local/os-autoinst/openQA/t/data/openqa/share/factory/iso/test1.iso' 
         #       expected: '/tmp/14-grutasks.t-fLx1/t/data/openqa/share/factory/iso/test1.iso' 

         #     Failed test '/tmp/14-grutasks.t-fLx1/t/data/openqa/share/factory/iso/test3.iso symlink created' 
         #     at ./t/14-grutasks.t line 749. 

         #     Failed test '/tmp/14-grutasks.t-fLx1/t/data/openqa/share/factory/iso/test3.iso points to expected destination' 
         #     at ./t/14-grutasks.t line 750. 
         #            got: '/home/okurz/local/os-autoinst/openQA/t/data/openqa/share/factory/iso/test1.iso' 
         #       expected: '/tmp/14-grutasks.t-fLx1/t/data/openqa/share/factory/iso/test1.iso' 
         # Looks like you failed 4 tests of 6. 

     #     Failed test 'successful download with multiple destinations and no existing files' 
     #     at ./t/14-grutasks.t line 752. 

         #     Failed test 'symlink restored' 
         #     at ./t/14-grutasks.t line 757. 
         #            got: '/home/okurz/local/os-autoinst/openQA/t/data/openqa/share/factory/iso/test1.iso' 
         #       expected: '/tmp/14-grutasks.t-fLx1/t/data/openqa/share/factory/iso/test1.iso' 
         # Looks like you failed 1 test of 2. 

     #     Failed test 'download skipped if only one destination missing' 
     #     at ./t/14-grutasks.t line 758. 
     # Looks like you failed 2 tests of 29. 

 #     Failed test 'download assets with correct permissions' 
 #     at ./t/14-grutasks.t line 766. 
 [2025-03-03 12:23:19.73987] [2845] [debug] [pid:2845] _carry_over_candidate(99983): _failure_reason=b:failed 
 # Looks like you failed 2 tests of 40. 
 ``` 

 which is on commit 41634a22e 

 ## Acceptance Criteria 

 **AC1:** `t/14-grutasks.t` uses a `/tmp` directory for `t/data/openqa/webui/cache/needle-refs`

Back