selftest/signing: add --batch to gpg invocation when importing keys

Otherwise it may pop up windows asking for passphrases which breaks
automated testing.

Newer YP releases and master already have the fix.

[YOCTO #12521]

(From OE-Core rev: 863916169fbe2686015b4f2279f49f08f41e9a47)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin 2018-03-22 15:55:17 +02:00 committed by Richard Purdie
parent b85ff208bc
commit 134aa03cd7

View File

@ -26,7 +26,7 @@ class Signing(oeSelfTest):
cls.pub_key_path = os.path.join(cls.testlayer_path, 'files', 'signing', "key.pub")
cls.secret_key_path = os.path.join(cls.testlayer_path, 'files', 'signing', "key.secret")
runCmd('gpg --homedir %s --import %s %s' % (cls.gpg_dir, cls.pub_key_path, cls.secret_key_path))
runCmd('gpg --batch --homedir %s --import %s %s' % (cls.gpg_dir, cls.pub_key_path, cls.secret_key_path))
@classmethod
def tearDownClass(cls):