mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[calamares] More attributes in injected Python script
Fake a little more of the subprocess module.
This commit is contained in:
parent
5d54a08581
commit
015f644acf
1 changed files with 2 additions and 0 deletions
|
@ -409,6 +409,8 @@ class fake_subprocess(object):
|
||||||
def check_call(*args, **kwargs):
|
def check_call(*args, **kwargs):
|
||||||
libcalamares.utils.debug("subprocess.check_call(%r,%r) X subverted to call" % (args, kwargs))
|
libcalamares.utils.debug("subprocess.check_call(%r,%r) X subverted to call" % (args, kwargs))
|
||||||
return 0
|
return 0
|
||||||
|
for attr in ("CalledProcessError",):
|
||||||
|
setattr(fake_subprocess,attr,getattr(_calamares_subprocess,attr))
|
||||||
sys.modules["subprocess"] = fake_subprocess
|
sys.modules["subprocess"] = fake_subprocess
|
||||||
libcalamares.utils.debug('pre-script for testing purposes injected')
|
libcalamares.utils.debug('pre-script for testing purposes injected')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue