This unittest is not exposing the path we're seeing.  I suspect there's some 
python string stuff happening here, I'll likely need to dump udevadm info 
--query=property --export output into a file and provide the decoded file 
output into the return of the mocked subp to have it trigger what I see a 
runtime.

First we shouldn't shlex.quote() everything, that leaves shell-escape 
characters in the values we'd like to use as they are, DEVTYPE="disk" for 
example, instead of DEVTYPE="'disk'".

>>> shlex.split("'disk'")
['disk']
>>> shlex.split(shlex.quote("'disk'"))
["'disk'"]


-- 
https://code.launchpad.net/~raharper/curtin/+git/curtin/+merge/382993
Your team curtin developers is subscribed to branch curtin:master.

-- 
Mailing list: https://launchpad.net/~curtin-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~curtin-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to