Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 67A10E00DED; Thu, 5 May 2016 09:21:19 -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: * -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 * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.192.178 listed in list.dnswl.org] Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 95FB7E00DED for ; Thu, 5 May 2016 09:21:16 -0700 (PDT) Received: by mail-pf0-f178.google.com with SMTP id 77so39166774pfv.2 for ; Thu, 05 May 2016 09:21:16 -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:in-reply-to:references; bh=tDmGeNTQIlUN8Sg5xpPU303lqRGIM4hKL21pzj3dKCc=; b=Fo5Ogsyk6rQDPApzHOwxgt/Dwf8OuCelbOcyzNLO8Fh8tEv/5aoLuOr5MBzS6cIog/ l+bxAP1lNJ3jHMNI0U09LYNd5o1U1QqJ9+ez5ez5V81HeGYAHmb7Loukkupjy4m4E7I8 SjBG30BtLD2eont6HF1aUW/yA1Hi/nkcXqYZnxJfRPMauf+srEMO+CAp4wBUBlviioXz Q2kKgbkXVInKdy1Rb3LrMFVrgCyX6+St4FgyJO7e89XCzkfVL3m090qTKWP15Zjhb30H X15ZjNQeROWCLpQ15wJF32jEpXjwsQ/9nLA5emqdf5Ja38Abf9/6onMy7NhFBaKeewxs c9Ag== 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:in-reply-to :references; bh=tDmGeNTQIlUN8Sg5xpPU303lqRGIM4hKL21pzj3dKCc=; b=hLQvDsDDU8RiUUQA78em7+EACiiyhCyefQwlt+5R+B6F95Sn0016IvbWGzDSeh473P JFOIrVaQ2ZSjJ02RVAfP9kEcwJK7qzrJqE+3cHuSAsgm3zWmpAxmu/P5vI+QM18jRPu/ e22IVd5lWlJdECQfbtQAbGOk4wtp2EK8vzRgGDm3NhFY1vJVQchjK7KhGmBYdRababXt AIqFiQYkCGIKmI6uAweVbtIF+wvjpQLuPqhQz/iWsIMR5DpxJv0YU73RVj/D35K3DH59 aahUFH+HP+9FtNjmf5H5ddbbEqrEasSHyiUnILSfEgptC85qN7HIS7axgQvc38Nn0KLy PpkA== X-Gm-Message-State: AOPr4FVrqwCkgsR0ONFo4+e6fKGGGWa8AlOAmD8Ph+JTsZbyLkZ/UDINGXvjEyo0gOh4oPx7 X-Received: by 10.98.32.13 with SMTP id g13mr21877410pfg.130.1462465275971; Thu, 05 May 2016 09:21:15 -0700 (PDT) Received: from dorado.ger.corp.intel.com ([192.55.55.41]) by smtp.gmail.com with ESMTPSA id wy7sm14858813pab.5.2016.05.05.09.21.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 May 2016 09:21:15 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 5 May 2016 17:20:59 +0100 Message-Id: <1462465262-17912-3-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1462465262-17912-1-git-send-email-michael.g.wood@intel.com> References: <1462465262-17912-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH v3 3/6] toaster: Add a specific test settings file 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: Thu, 05 May 2016 16:21:19 -0000 When running certain tests we want a particular database specified. When bitbake toaster ui is being tested pass it these test settings so that it uses the same database as the unit tests running. Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastermain/settings-test.py | 41 ++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 bitbake/lib/toaster/toastermain/settings-test.py diff --git a/bitbake/lib/toaster/toastermain/settings-test.py b/bitbake/lib/toaster/toastermain/settings-test.py new file mode 100644 index 0000000..36b14c0 --- /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 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