mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-10 21:41:26 +00:00
Use popen for lsb_release
This commit is contained in:
parent
560b61840b
commit
71205e8fc8
4
debian/tests/uefi_tests_base.py
vendored
4
debian/tests/uefi_tests_base.py
vendored
@ -16,7 +16,6 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import lsb_release
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import stat
|
import stat
|
||||||
@ -169,7 +168,8 @@ class UEFIVirtualMachine(UEFITestsBase):
|
|||||||
self.autopkgtest_dir = tempfile.TemporaryDirectory()
|
self.autopkgtest_dir = tempfile.TemporaryDirectory()
|
||||||
os.makedirs(os.path.join(self.autopkgtest_dir.name, 'img'))
|
os.makedirs(os.path.join(self.autopkgtest_dir.name, 'img'))
|
||||||
self.arch = arch
|
self.arch = arch
|
||||||
self.release = lsb_release.get_os_release()['CODENAME']
|
release = subprocess.run(['lsb_release','-c','-s'], capture_output=True, check=True)
|
||||||
|
self.release = release.stdout
|
||||||
self.path = tempfile.mkstemp(dir=self.autopkgtest_dir.name)[1]
|
self.path = tempfile.mkstemp(dir=self.autopkgtest_dir.name)[1]
|
||||||
if not base:
|
if not base:
|
||||||
subprocess.run(['wget',
|
subprocess.run(['wget',
|
||||||
|
Loading…
Reference in New Issue
Block a user