From: Damien Lespiau Subject: [PATCH 08/23] piglit: Merge filters from previous invocations when resuming Date: Fri, 15 Nov 2013 16:33:25 +0000 Message-ID: <1384533220-20780-9-git-send-email-damien.lespiau@intel.com> References: <1384533220-20780-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 9ACC6FB8EA for ; Fri, 15 Nov 2013 08:33:54 -0800 (PST) In-Reply-To: <1384533220-20780-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org This commit has been posted to the piglit ml: http://lists.freedesktop.org/archives/piglit/2013-November/008452.html Signed-off-by: Damien Lespiau --- piglit/piglit-run.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/piglit/piglit-run.py b/piglit/piglit-run.py index 1d63cd4..d11d409 100755 --- a/piglit/piglit-run.py +++ b/piglit/piglit-run.py @@ -99,10 +99,15 @@ def main(): old_results = core.load_results(resultsDir) profileFilename = old_results.options['profile'] - # Changing the args to the old args allows us to set them - # all in one places down the way - args.exclude_tests = old_results.options['exclude_filter'] - args.include_tests = old_results.options['filter'] + # Append the test filters that were given in previous runs to the ones + # given in the resume invocation + for f in old_results.options['exclude_filter']: + if f not in args.exclude_tests: + args.exclude_tests.append(f) + + for f in old_results.options['filter']: + if f not in args.include_tests: + args.include_tests.append(f) # Otherwise parse additional settings from the command line else: -- 1.8.3.1