diff options
| author | Bastien Roucariès <rouca@debian.org> | 2024-04-15 14:54:14 +0000 |
|---|---|---|
| committer | Bastien Roucariès <rouca@debian.org> | 2024-04-15 14:54:14 +0000 |
| commit | 71205e8fc811af4a8b7959b53cb0a3b2922ecd39 (patch) | |
| tree | 22e97185d663d9da227111787641983d0f82143d | |
| parent | 560b61840bf6e91b6bfb14e8b9548f51ca07687d (diff) | |
| download | efi-boot-shim-71205e8fc811af4a8b7959b53cb0a3b2922ecd39.tar.gz efi-boot-shim-71205e8fc811af4a8b7959b53cb0a3b2922ecd39.zip | |
Use popen for lsb_release
| -rw-r--r-- | debian/tests/uefi_tests_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/tests/uefi_tests_base.py b/debian/tests/uefi_tests_base.py index f007d741..7a595894 100644 --- a/debian/tests/uefi_tests_base.py +++ b/debian/tests/uefi_tests_base.py @@ -16,7 +16,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -import lsb_release import os import shutil import stat @@ -169,7 +168,8 @@ class UEFIVirtualMachine(UEFITestsBase): self.autopkgtest_dir = tempfile.TemporaryDirectory() os.makedirs(os.path.join(self.autopkgtest_dir.name, 'img')) 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] if not base: subprocess.run(['wget', |
