Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6B0BDE008B4; Tue, 23 Feb 2016 09:29:44 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.24 listed in list.dnswl.org] Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 958DDE00C9D for ; Tue, 23 Feb 2016 09:29:39 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 23 Feb 2016 09:29:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,490,1449561600"; d="scan'208";a="892860593" Received: from alimonb-mobl1.zpn.intel.com ([10.219.5.35]) by orsmga001.jf.intel.com with ESMTP; 23 Feb 2016 09:29:15 -0800 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= To: toaster@yoctoproject.org Date: Tue, 23 Feb 2016 11:31:24 -0600 Message-Id: <1456248690-24299-3-git-send-email-anibal.limon@linux.intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1456248690-24299-1-git-send-email-anibal.limon@linux.intel.com> References: <1456248690-24299-1-git-send-email-anibal.limon@linux.intel.com> MIME-Version: 1.0 Cc: benjamin.esquivel@linux.intel.com, william.c.randle@intel.com Subject: [PATCH 2/8] toaster/tests: Add __init__.py and base.py. X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2016 17:29:44 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add empty __init__.py for set folder as module. Add base.py module that contains a base class for toaster test cases now have an object with options and a logger. Signed-off-by: Aníbal Limón --- lib/toaster/tests/__init__.py | 0 lib/toaster/tests/base.py | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100644 lib/toaster/tests/__init__.py create mode 100644 lib/toaster/tests/base.py diff --git a/lib/toaster/tests/__init__.py b/lib/toaster/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/lib/toaster/tests/base.py b/lib/toaster/tests/base.py new file mode 100644 index 0000000..8b303ac --- /dev/null +++ b/lib/toaster/tests/base.py @@ -0,0 +1,11 @@ +import unittest + +class ToasterOptions(object): + pass + +class ToasterTestCase(unittest.TestCase): + def __init__(self, testname, opts, logger): + super(ToasterTestCase, self).__init__(testname) + + self.opts = opts + self.logger = logger -- 2.1.4