Trim options in autopkgtest configuration file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
If there are leading or trailing spaces in an argument in an autopkgtest configuration file the command will fail with:
⟫ adt-run asic0x @dkms/dkms.cfg
usage: adt-run [options] action [action ...] --- virt-server [options]
adt-run: error: argument -d/--debug: ignored explicit argument ' '
In this case it was a trailing space.
Arguments should be trimmed.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: autopkgtest 3.14
ProcVersionSign
Uname: Linux 3.19.0-16-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Sun May 10 10:19:04 2015
InstallationDate: Installed on 2013-09-03 (613 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
PackageArchitec
SourcePackage: autopkgtest
UpgradeStatus: No upgrade log present (probably fresh install)
Can you please attach the dkms.cfg which causes that? I tried these two forms, and they both work as expected:
'--source= mysrc_1. dsc\n-B\ n--timeout- copy=5 ' mysrc_1. dsc\n-B\ n--timeout- copy=5\ n'
'--source=
a variant that expectantly does fail is '--source= mysrc_1. dsc\n-B\ n--timeout- copy=5\ n ' but it fails differently ("unsupported action argument").