Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 838187

Summary: app-shells/fish-3.4.*: "redirect.fish" tests failed on multiple platform
Product: Gentoo Linux Reporter: Raymond Wong <infiwang>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: UNCONFIRMED ---    
Severity: normal CC: DuPol, jstein, kingjon3377, matoro_bugzilla_gentoo, polynomial-c
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=886161
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 807742, 909803    
Attachments: build.log on amd64
build.log on mips
build.log on riscv
emerge --info on amd64
emerge --info on mips
emerge --info on riscv

Description Raymond Wong 2022-04-13 07:46:35 UTC
fish-3.4.1 test fails on my amd64/mips/riscv system with the following output:

...
165/229 Test #164: redirect.fish...........................
..***Failed    1.53 sec
Testing file checks/redirect.fish ... Failure:

  The CHECKERR on line 144 wants:
    warning: Path \'/bin/echo\' is not a directory

  which failed to match line stderr:9:
    open: Permission denied

  Context:
    [...] from line 106 (stderr:6):
    read: stdin is closed
    hooray2
    warning: An error occurred while redirecting file \'/bin/echo/file\'
    open: Permission denied <= does not match CHECKERR 'warning: Path \'/bin/echo\' is not a directory' on line 144

  when running command:
    ../test/root/bin/fish checks/redirect.fish
...

99% tests passed, 1 tests failed out of 229

...

The following tests FAILED:
        164 - redirect.fish (Failed)

fish-3.4.0 on amd64/mips would also yield identical failure on the same test; Conversely, fish-3.3.1-r1 on amd64/mips would not.
Comment 1 Raymond Wong 2022-04-13 07:48:01 UTC
Created attachment 770540 [details]
build.log on amd64
Comment 2 Raymond Wong 2022-04-13 07:48:42 UTC
Created attachment 770543 [details]
build.log on mips
Comment 3 Raymond Wong 2022-04-13 07:49:19 UTC
Created attachment 770546 [details]
build.log on riscv
Comment 4 Raymond Wong 2022-04-13 07:49:55 UTC
Created attachment 770549 [details]
emerge --info on amd64
Comment 5 Raymond Wong 2022-04-13 07:50:29 UTC
Created attachment 770552 [details]
emerge --info on mips
Comment 6 Raymond Wong 2022-04-13 07:51:02 UTC
Created attachment 770555 [details]
emerge --info on riscv
Comment 7 Raymond Wong 2022-04-13 08:08:14 UTC
Specifying FEATURES="-sandbox -usersandbox" to disable sandbox during test would resolve the issue somehow.
Probably because "redirect.fish" would attempt redirecting to /bin/echo/file, which is forbidden by default.
Comment 8 Raymond Wong 2022-04-24 06:42:06 UTC
This was done on amd64.
It seems that FEATURES='-usersandbox' is enough to work around this problem.

USE tests started on Sun 24 Apr 2022 02:20:33 PM CST

 FEATURES=' test' failed for =app-shells/fish-3.4.1
    log has been saved as ./tatt/logs/app-shells_fish-3.4.1_use_buUFS
    testsuite logs have been saved as ./tatt/logs/app-shells_fish-3.4.1_use_buUFS.tar
 FEATURES='-sandbox test' failed for =app-shells/fish-3.4.1
    log has been saved as ./tatt/logs/app-shells_fish-3.4.1_use_YUGwg
    testsuite logs have been saved as ./tatt/logs/app-shells_fish-3.4.1_use_YUGwg.tar

USE tests started on Sun 24 Apr 2022 02:26:55 PM CST

FEATURES='-sandbox -usersandbox test' USE='' succeeded for =app-shells/fish-3.4.1

USE tests started on Sun 24 Apr 2022 02:35:59 PM CST

FEATURES='-usersandbox test' USE='' succeeded for =app-shells/fish-3.4.1
Comment 9 Raymond Wong 2022-04-24 07:12:11 UTC
Can confirm that FEATURES='-usersandbox' also solve the issue on mips/riscv

USE tests started on Sun Apr 24 14:45:30 CST 2022

 FEATURES=' test' failed for =app-shells/fish-3.4.1
    log has been saved as ./tatt/logs/app-shells_fish-3.4.1_use_TvikL
    testsuite logs have been saved as ./tatt/logs/app-shells_fish-3.4.1_use_TvikL.tar
FEATURES='-usersandbox test' USE='' succeeded for =app-shells/fish-3.4.1