Package: rust-web-sys
Version: 0.3.64-2
Severity: normal
Tags: patch

Dear Maintainer,

I'd like to submit a patch to fix the Debci failures reported as below.
https://ci.debian.net/packages/r/rust-web-sys/unstable/amd64/

The failure is caused by passing incorrect parameter '--all-targets.' in 
debian/tests/control
The error before applying the patch:
autopkgtest [09:52:40]: test librust-web-sys-dev:default: 
[-----------------------
debian cargo wrapper: options = ['parallel=40'], profiles = [], parallel = 
['-j40'], lto =
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = 
x86_64-linux-gnu
debian cargo wrapper: linking /usr/share/cargo/registry/* into 
/tmp/tmp.4z48FzQu6u/registry/
debian cargo wrapper: options = ['parallel=40'], profiles = [], parallel = 
['-j40'], lto =
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = 
x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', 
'/usr/bin/cargo', '-Zavoid-dev-deps', 'test', '--verbose', '--verbose', '-j40', 
'--target', 'x86_64-unknown-linux-gnu', '--all-targets.'],) {}
error: unexpected argument '--all-targets.' found
  tip: a similar argument exists: '--all-targets'
  tip: to pass '--all-targets.' as a value, use '-- --all-targets.'
Usage: cargo test --verbose... --jobs <N> --target [<TRIPLE>] --all-targets 
[TESTNAME] [-- [ARGS]...]
For more information, try '--help'.

With the patch attached, the autopkgtest tests are successfully:
autopkgtest [10:07:24]: test librust-web-sys-dev:default: 
-----------------------]
autopkgtest [10:07:24]: test librust-web-sys-dev:default:  - - - - - - - - - - 
results - - - - - - - - - -
librust-web-sys-dev:default PASS
autopkgtest [10:07:24]: @@@@@@@@@@@@@@@@@@@@ summary
librust-web-sys-dev:default PASS
autopkgtest [10:07:24]: Binaries: resetting testbed apt configuration

Would you please accept this patch?

Best Regards,
Peng

Attachment: 0001-Fix-a-parameter-error-all-targets.-in-debian-test-co.patch
Description: 0001-Fix-a-parameter-error-all-targets.-in-debian-test-co.patch

Reply via email to