go-mtpfs: Disable tests req'ing USB attached devs

These test are written in a way that they don't skip themselves if they
cannot find an Android device attached over USB to the running host.

Bug fixed by #173702 runs the previously skipped tests for this
package.
This commit is contained in:
Berk D. Demir 2022-05-01 23:15:08 +00:00
parent 032f261fae
commit aee4df7eeb

View file

@ -18,7 +18,11 @@ buildGoModule rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libusb1 ];
checkFlags = [ "-short" ];
preCheck = ''
# Only run tests under mtp/encoding_test.go
# Other tests require an Android deviced attached over USB.
buildFlagsArray+=("-run" "Test(Encode|Decode|Variant).*")
'';
meta = with lib; {
description = "A simple FUSE filesystem for mounting Android devices as a MTP device";