Knowledge Library
Knowledge Library Home
Knowledge Library Home Knowledge Library Products Operating Systems Wind River Linux Wind River Linux 9 Toolchain & Build System LIN9-1202 : python-pygpgme ptest: 3 out of 55 failed

LIN9-1202 : python-pygpgme ptest: 3 out of 55 failed

Defect #: LIN9-1202
Found In Versionunknown
Fix Version9.0.0.2
Severity:Standard
Status:Fixed
Created Date:07/24/2016
Component/s :Userspace
Sub Component:python

Description

Problem Description
======================
python-pygpgme ptest 3/55 failed and 2/55 had errors

Logs
======================
root@dell760-lxnetwork-vlan5:/usr/lib64/python-pygpgme/ptest# ./run-ptest
test_armor (tests.test_context.ContextTestCase) ... ok
test_constructor (tests.test_context.ContextTestCase) ... ok
test_include_certs (tests.test_context.ContextTestCase) ... ok
test_keylist_mode (tests.test_context.ContextTestCase) ... ok
test_passphrase_cb (tests.test_context.ContextTestCase) ... ok
test_progress_cb (tests.test_context.ContextTestCase) ... ok
test_protocol (tests.test_context.ContextTestCase) ... ok
test_set_engine_info (tests.test_context.ContextTestCase) ... ok
test_textmode (tests.test_context.ContextTestCase) ... ok
test_key1 (tests.test_keys.KeyTestCase) ... ok
test_key2 (tests.test_keys.KeyTestCase) ... ok
test_revoked (tests.test_keys.KeyTestCase) ... ok
test_signonly (tests.test_keys.KeyTestCase) ... ok
test_list_by_email (tests.test_keylist.KeylistTestCase) ... ok
test_list_by_email_substring (tests.test_keylist.KeylistTestCase) ... ok
test_list_by_name (tests.test_keylist.KeylistTestCase) ... ok
test_list_secret (tests.test_keylist.KeylistTestCase) ... ok
test_listall (tests.test_keylist.KeylistTestCase) ... ok
test_import_concat (tests.test_import.ImportTestCase) ... FAIL
test_import_empty (tests.test_import.ImportTestCase) ... ok
test_import_file (tests.test_import.ImportTestCase) ... ok
test_import_secret_file (tests.test_import.ImportTestCase) ... FAIL
test_import_stringio (tests.test_import.ImportTestCase) ... ok
test_import_twice (tests.test_import.ImportTestCase) ... ok
test_export_by_email (tests.test_export.ExportTestCase) ... ok
test_export_by_fingerprint (tests.test_export.ExportTestCase) ... ok
test_export_by_name (tests.test_export.ExportTestCase) ... ok
test_delete_non_existant (tests.test_delete.DeleteTestCase) ... ok
test_delete_public_key (tests.test_delete.DeleteTestCase) ... ok
test_delete_public_key_with_secret_key (tests.test_delete.DeleteTestCase) ... ok
test_delete_secret_key (tests.test_delete.DeleteTestCase) ... ok
test_sign_clearsign (tests.test_sign_verify.SignVerifyTestCase) ... ok
test_sign_detatch (tests.test_sign_verify.SignVerifyTestCase) ... ok
test_sign_normal (tests.test_sign_verify.SignVerifyTestCase) ... ok
test_sign_normal_armor (tests.test_sign_verify.SignVerifyTestCase) ... ok
test_verify_bad_signature (tests.test_sign_verify.SignVerifyTestCase) ... ok
test_verify_clearsign (tests.test_sign_verify.SignVerifyTestCase) ... ok
test_verify_detached (tests.test_sign_verify.SignVerifyTestCase) ... ok
test_verify_multiple_sigs (tests.test_sign_verify.SignVerifyTestCase) ... ok
test_verify_no_signature (tests.test_sign_verify.SignVerifyTestCase) ... ok
test_verify_normal (tests.test_sign_verify.SignVerifyTestCase) ... ok
test_decrypt (tests.test_encrypt_decrypt.EncryptDecryptTestCase) ... ok
test_decrypt_verify (tests.test_encrypt_decrypt.EncryptDecryptTestCase) ... ok
test_encrypt (tests.test_encrypt_decrypt.EncryptDecryptTestCase) ... ok
test_encrypt_armor (tests.test_encrypt_decrypt.EncryptDecryptTestCase) ... ok
test_encrypt_sign (tests.test_encrypt_decrypt.EncryptDecryptTestCase) ... ok
test_encrypt_symmetric (tests.test_encrypt_decrypt.EncryptDecryptTestCase) ... ERROR
test_encrypt_to_signonly (tests.test_encrypt_decrypt.EncryptDecryptTestCase) ... ok
test_sign_with_passphrase_cb (tests.test_passphrase.PassphraseTestCase) ... ERROR
test_sign_without_passphrase_cb (tests.test_passphrase.PassphraseTestCase) ... FAIL
test_sign_with_progress_cb (tests.test_progress.ProgressTestCase) ... ok
test_edit_ownertrust (tests.test_editkey.EditKeyTestCase) ... ok
test_edit_quit (tests.test_editkey.EditKeyTestCase) ... ok
test_edit_sign (tests.test_editkey.EditKeyTestCase) ... ok
test_invalid_parameters (tests.test_genkey.GenerateKeyTestCase) ... ok

======================================================================
ERROR: test_encrypt_symmetric (tests.test_encrypt_decrypt.EncryptDecryptTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python-pygpgme/ptest/tests/test_encrypt_decrypt.py", line 136, in test_encrypt_symmetric
    ctx.encrypt(None, 0, plaintext, ciphertext)
GpgmeError: (7, 11, u'Bad passphrase')

======================================================================
ERROR: test_sign_with_passphrase_cb (tests.test_passphrase.PassphraseTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python-pygpgme/ptest/tests/test_passphrase.py", line 65, in test_sign_with_passphrase_cb
    new_sigs = ctx.sign(plaintext, signature, gpgme.SIG_MODE_CLEAR)
GpgmeError: (7, 1, u'General error')

======================================================================
FAIL: test_import_concat (tests.test_import.ImportTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python-pygpgme/ptest/tests/test_import.py", line 105, in test_import_concat
    self.assertEqual(result.considered, 3)
AssertionError: 5 != 3

======================================================================
FAIL: test_import_secret_file (tests.test_import.ImportTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python-pygpgme/ptest/tests/test_import.py", line 58, in test_import_secret_file
    self.assertEqual(result.considered, 1)
AssertionError: 3 != 1

======================================================================
FAIL: test_sign_without_passphrase_cb (tests.test_passphrase.PassphraseTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python-pygpgme/ptest/tests/test_passphrase.py", line 44, in test_sign_without_passphrase_cb
    self.assertEqual(exc.args[1], gpgme.ERR_BAD_PASSPHRASE)
AssertionError: 1 != 11

----------------------------------------------------------------------
Ran 55 tests in 49.708s

FAILED (failures=3, errors=2)



Expected Behavior
======================
No fail exist.

Steps to Reproduce

1, # ./setup.sh --machines qemux86-64 --kernel standard --templates feature/test --dl-layers 
2, # source environment-setup-x86_64-wrlinuxsdk-linux 
3, # source oe-init-build-env build 
4, add one line as below in conf/local.conf 
IMAGE_INSTALL_append = " python-pygpgme"
5, # bitbake wrlinux-image-glibc-std 
6, boot up the target with runqemu 
# runqemu qemux86-64 wrlinux-image-glibc-std kvm nographic 
7, # cd /usr/lib64/python-pygpgme/ptest 
8, # ./run-ptest 
Last modified