Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BB315E00E7C; Mon, 13 Jun 2016 06:34:46 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.54 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 50B54E00D1C for ; Mon, 13 Jun 2016 06:34:42 -0700 (PDT) Received: by mail-pa0-f54.google.com with SMTP id bz2so45948577pad.1 for ; Mon, 13 Jun 2016 06:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=G3YDiKqxxqk4yJ5qTR2nRobggwCSTH4KnkAAZlmUjlU=; b=V7uhSYJRhJ40QHfRCsMkh7TSaoxzksWtX3Aw4aBPuzHLQb0KDIvJg2kJQ1Cjy/3pPM VIHvkjaz6PkEX8hBNmKfalQ/vCHqMORUZBNqOPmmkiX9OhV39xqYOMk2rbMgfonpG8Rl z8JfLoUQW54I391gKD89Nl9/HloEmjCdRVu/F2Zdw9UuSxZizIGmRiAfr3H8YIeTWnI4 j2gsDY592oyxZHrMgigHIlLnC+9UuP86CxEVmuWu3lyXajNXMJmhafKsw7h9n3IP6M7c B/2M1y/w89z8uaQObsIopstSh0jsU5IkDGf379FdONxFnrv7VAlAvhuDTulZLd5O5KM0 npTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=G3YDiKqxxqk4yJ5qTR2nRobggwCSTH4KnkAAZlmUjlU=; b=gZkrwccx4V1XuO7Kkg5PdA/30dNWRpk+3tdZ/3LXHwAh4e1C5lK+z/4gllaq6FVWc1 5Y/kWWF3kJ7ZjKDbjGg53eJDTesz35ZeeTcw9IRPyfOgKE+VxC3Kjz8GUuddLzdY3fDe PuohwB0nOQxl+7geb1FVyg3cvMKJak5B4QMvhBN0diwzzYvXwaqYIxenMwz2hsHkzYxh IMh3yZyVU1oR7QVN8ZQsFp0mj1xAY4ZgvQPbKAjpPN859vSKEJLm/rnuKQNNU+Ns7Zbm AzfHM+UjCZNtzYYQbH6gGhcmdeTJpIv2LlVJLlvx0CVF8WhsagakQ1SbegsNNivGunRJ e7FA== X-Gm-Message-State: ALyK8tLFeuX1pJ8zvlcv9eUAwa1KnIU0loygDPS+kRZmdVJZ5UL77Tj1egsbJstxTjYQwHVy X-Received: by 10.67.2.99 with SMTP id bn3mr22273073pad.62.1465824881960; Mon, 13 Jun 2016 06:34:41 -0700 (PDT) Received: from orion.ger.corp.intel.com (fmdmzpr02-ext.fm.intel.com. [192.55.55.37]) by smtp.gmail.com with ESMTPSA id y70sm37923217pff.25.2016.06.13.06.34.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Jun 2016 06:34:41 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Mon, 13 Jun 2016 14:34:30 +0100 Message-Id: <1465824871-14753-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH 1/2] toaster: tests Rename test settings to python compliant name and fix import 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: Mon, 13 Jun 2016 13:34:46 -0000 Use underscore instead of dash in the file name for the test settings. Also fix the import of the settings module. Signed-off-by: Michael Wood --- bitbake/lib/toaster/tests/builds/README | 2 +- bitbake/lib/toaster/toastermain/settings-test.py | 41 ------------------------ bitbake/lib/toaster/toastermain/settings_test.py | 41 ++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 42 deletions(-) delete mode 100644 bitbake/lib/toaster/toastermain/settings-test.py create mode 100644 bitbake/lib/toaster/toastermain/settings_test.py diff --git a/bitbake/lib/toaster/tests/builds/README b/bitbake/lib/toaster/tests/builds/README index 98e3e2e..4a3b532 100644 --- a/bitbake/lib/toaster/tests/builds/README +++ b/bitbake/lib/toaster/tests/builds/README @@ -7,7 +7,7 @@ The simplest way to run the tests are the following commands: $ . oe-init-build-env $ cd bitbake/lib/toaster/ # path my vary but this is into toaster's directory -$ DJANGO_SETTINGS_MODULE='toastermain.settings-test' ./manage.py test tests.builds +$ DJANGO_SETTINGS_MODULE='toastermain.settings_test' ./manage.py test tests.builds Optional environment variables: - TOASTER_DIR (where toaster keeps it's artifacts) diff --git a/bitbake/lib/toaster/toastermain/settings-test.py b/bitbake/lib/toaster/toastermain/settings-test.py deleted file mode 100644 index 36b14c0..0000000 --- a/bitbake/lib/toaster/toastermain/settings-test.py +++ /dev/null @@ -1,41 +0,0 @@ -# -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# BitBake Toaster Implementation -# -# Copyright (C) 2016 Intel Corporation -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -# Django settings for Toaster project. - -# Settings overlay to use for running tests -# DJANGO_SETTINGS_MODULE=toastermain.settings-test - -from settings import * - -DEBUG = True -TEMPLATE_DEBUG = DEBUG - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': '/tmp/toaster-test-db.sqlite', - 'TEST': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': '/tmp/toaster-test-db.sqlite', - } - } -} diff --git a/bitbake/lib/toaster/toastermain/settings_test.py b/bitbake/lib/toaster/toastermain/settings_test.py new file mode 100644 index 0000000..a322711 --- /dev/null +++ b/bitbake/lib/toaster/toastermain/settings_test.py @@ -0,0 +1,41 @@ +# +# ex:ts=4:sw=4:sts=4:et +# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- +# +# BitBake Toaster Implementation +# +# Copyright (C) 2016 Intel Corporation +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +# Django settings for Toaster project. + +# Settings overlay to use for running tests +# DJANGO_SETTINGS_MODULE=toastermain.settings-test + +from toastermain.settings import * + +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': '/tmp/toaster-test-db.sqlite', + 'TEST': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': '/tmp/toaster-test-db.sqlite', + } + } +} -- 2.7.4