Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B497EE00DE5; Thu, 5 May 2016 06:15:12 -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 * [74.125.82.44 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-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 00A39E00D9E for ; Thu, 5 May 2016 06:15:09 -0700 (PDT) Received: by mail-wm0-f44.google.com with SMTP id e201so20115031wme.0 for ; Thu, 05 May 2016 06:15:09 -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=ZxfWBDJJkG3Z6RRNPU/aqfTf2jAo+SaofUd8ZO7RfPrLYHeIP32DQ4GGZVcFGu1P1y +R+uZCLeadIUbu1H19HCW+PNeOdWBxp5h2j0JhzTH0xpC1xv47hdkn4B1YhT6hYDMner 4n7XD11vR2/4U/x2LNpZCX8KP4KlHhKFwygppyU2mXRGWy/0pzAASB6HjNaggkmwPeS6 SVaI0Dp6kqGwAmjh+mLgKjteEJFxmOFOQXyK/rpPvgE9igoRdDrML29uNdiRoaqrh8ij uECnEeeSuVhmj7UEwxc245BMJjlNpqkJ/x/q8zNTCGrbTh3tvPocUL4l+4AI7vRr7Df6 j0Yg== 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=G5LUZ5ExyVpzuvyxNrnjl++mSWd/Y4dP7u3cHWfgLu9GnHASd+6PEUK+7Jqh6OfG9x 4d/d2eCs4642mDkky+xD6pzo55YmBfxajjYp5y1mfFM0EhlerjZ7foGfPQNSsnIfqwOL V9j9rR19BHPG3Xyh5TzuiPuDMjXcFvHK9K6BE92tHU8KDIcQn9f0ujVpjoNBJ60CFnhA po3Lb/2EWlaLmdnhSXFwI2df2yMLYZ6kAWfxY7rQeQr3IHVLP52GDDMB+7wazQ0W6bpI 34ZhcW5i7+KnKACNrHYOQasZ9mUHUd3jb5n2KJHJ/4vl/YRxK9WH+Tb7s+Rqsk6tpFoM Ezhg== X-Gm-Message-State: AOPr4FXoKFh/NEsjkyNBjS6RgYrsCD9tqPSJtu+PHWwz/g9Tpf+u8Ca9+RwvU8H3wuKRjSn5 X-Received: by 10.28.10.196 with SMTP id 187mr3437057wmk.76.1462454108875; Thu, 05 May 2016 06:15:08 -0700 (PDT) Received: from dorado.ger.corp.intel.com (genld-218-172.t-mobile.co.uk. [149.254.218.172]) by smtp.gmail.com with ESMTPSA id ug8sm9719755wjc.42.2016.05.05.06.13.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 May 2016 06:15:08 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 5 May 2016 14:12:29 +0100 Message-Id: <1462453952-8837-3-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1462453952-8837-1-git-send-email-michael.g.wood@intel.com> References: <1461607497-17591-5-git-send-email-michael.g.wood@intel.com> <1462453952-8837-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH v2 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 13:15:12 -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