Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BDF13E00C65; Fri, 6 May 2016 14:26:41 -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 05153E00C62 for ; Fri, 6 May 2016 14:26:40 -0700 (PDT) Received: by mail-pa0-f54.google.com with SMTP id xk12so51541751pac.0 for ; Fri, 06 May 2016 14:26:40 -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=BDX01YtEJ9Q2Hg7Axg4nst4zsObBVC4fKkNXNhsPYu3wSlbvXoDy062F3QrH2H4AIS +4tEnr+G8IKjcSgETSKnhR4eh9tOZyh/rd6QdA6jjcrc4NS6nuapFQxBI9tkNKtBdYQ1 LdCSy/QBcwd26Saqn8p6RsYaykUalXF6sorwKnwzdmUOS7DW0QsQ1KQucRqLOHs6JF1k oo+muVINGnyz8/dBqlSu4NHYGyHxv5eXktzRbiO3lmEeKE0uyvA0CqTotz5FLgYxPTQY G1bhb1BhjlPfTHsoQI2H0COOw71W5VnyM7ipQW53HdC3RYwD57m0R1UR8nMQGUrQMxA7 w+Qg== 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=OUUEq/Mgbv4/LyqExTmc14jtsONRofMfAFqSk7AFPpCEkPgWKXpXmegbloJFVlVn0o r+A0729uGvWqRBOe0K3xIY+OEhUQmV6w8XBmAwQLV3yicWehw2PLXQJgVMqPc4mefN9W vqB/TLylg699/gt1MouA9/hKktu5s0z34pwdW0TffkDwlPgRdM21n3eTx6QVNyA4+t+t cn5KBqmMWKU16wAE4GaKoPsqpv8gSIu9RiQQe8TEpTIKbiX0otFoOC/SJ5d3C2LMdi/z kFhyBaj2vRTJa3ajyFBuv3xUn2pj0jRd19zlsUPMOkvfBjTrUOy6hS3Z0rDe+JwUyM0S mIog== X-Gm-Message-State: AOPr4FUQdXnDztcVuC14YMzMGSqqbgZI5s+odefwjeb7toD97uK5BGoL00F0HNzJq6cRa/0q X-Received: by 10.66.122.139 with SMTP id ls11mr31956641pab.14.1462569999972; Fri, 06 May 2016 14:26:39 -0700 (PDT) Received: from dorado.ger.corp.intel.com ([192.55.55.41]) by smtp.gmail.com with ESMTPSA id d184sm23136651pfc.27.2016.05.06.14.26.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 May 2016 14:26:39 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 6 May 2016 22:26:22 +0100 Message-Id: <1462569985-12670-4-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1462569985-12670-1-git-send-email-michael.g.wood@intel.com> References: <1462569985-12670-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH v4 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: Fri, 06 May 2016 21:26:41 -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