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:
parent
032f261fae
commit
aee4df7eeb
|
@ -18,7 +18,11 @@ buildGoModule rec {
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ libusb1 ];
|
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; {
|
meta = with lib; {
|
||||||
description = "A simple FUSE filesystem for mounting Android devices as a MTP device";
|
description = "A simple FUSE filesystem for mounting Android devices as a MTP device";
|
||||||
|
|
Loading…
Reference in a new issue