Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mail.openembedded.org (Postfix) with ESMTP id AF03360D65 for ; Wed, 18 Dec 2013 18:31:29 +0000 (UTC) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 18 Dec 2013 10:31:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.95,508,1384329600"; d="scan'208";a="452151670" Received: from linux.jf.intel.com (HELO linux.intel.com) ([10.23.219.25]) by fmsmga002.fm.intel.com with ESMTP; 18 Dec 2013 10:31:15 -0800 Received: from firebird.rb.intel.com (firebird.rb.intel.com [10.237.105.156]) by linux.intel.com (Postfix) with ESMTP id 42B0F6A4007; Wed, 18 Dec 2013 10:31:12 -0800 (PST) From: Stefan Stanacar To: openembedded-core@lists.openembedded.org Date: Wed, 18 Dec 2013 20:31:55 +0200 Message-Id: <1387391515-10611-1-git-send-email-stefanx.stanacar@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [PATCH] testimage: include traceback when loading a test fails X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Dec 2013 18:31:31 -0000 Makes it much easier to figure out where a syntax error is. Signed-off-by: Stefan Stanacar --- meta/classes/testimage.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index add8009..1161e59 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -122,7 +122,8 @@ def testimage_main(d): try: loadTests(tc) except Exception as e: - bb.fatal("Loading tests failed:\n %s" % e) + import traceback + bb.fatal("Loading tests failed:\n%s" % traceback.format_exc()) target.deploy() -- 1.8.3.1