tests/test_alpm: add --nosign and remove an unused import

This commit is contained in:
lilydjwg 2020-11-10 23:27:09 +08:00
parent 5622d6d0c1
commit 372454136f

View file

@ -2,12 +2,12 @@
# Copyright (c) 2020 DDoSolitary <DDoSolitary@gmail.com>, et al.
import pathlib
import pytest
import os
import shutil
import subprocess
import tempfile
import pytest
pytestmark = [
pytest.mark.asyncio,
pytest.mark.skipif(shutil.which('makepkg') is None, reason='requires makepkg command'),
@ -31,7 +31,7 @@ def setup_module(module):
'arch=(any)\n'
'provides=("test-provides=5.6-7" "test-provides-unversioned")\n'
)
subprocess.check_call(['makepkg'], cwd=pkg_path)
subprocess.check_call(['makepkg', '--nosign'], cwd=pkg_path)
pkg_file = subprocess.check_output(['makepkg', '--packagelist'], cwd=pkg_path, text=True).strip()
db_path = pkg_path / 'test-db'
db_path.mkdir()