From patchwork Wed Feb 8 14:03:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 9562595 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DC8F360574 for ; Wed, 8 Feb 2017 14:04:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD77A284EE for ; Wed, 8 Feb 2017 14:04:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C242B284F1; Wed, 8 Feb 2017 14:04:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6965B284EF for ; Wed, 8 Feb 2017 14:04:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754579AbdBHOER (ORCPT ); Wed, 8 Feb 2017 09:04:17 -0500 Received: from mail.kernel.org ([198.145.29.136]:41486 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754335AbdBHOEP (ORCPT ); Wed, 8 Feb 2017 09:04:15 -0500 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 947402034E; Wed, 8 Feb 2017 14:04:12 +0000 (UTC) Received: from CookieMonster.cookiemonster.local (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3062920340; Wed, 8 Feb 2017 14:04:06 +0000 (UTC) From: Kieran Bingham To: laurent.pinchart@ideasonboard.com, linux-renesas-soc@vger.kernel.org, kieran.bingham@ideasonboard.com Subject: [PATCH 1/5] vsp-lib: sort output frames correctly Date: Wed, 8 Feb 2017 14:03:56 +0000 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kieran Bingham In the event of failed frames, or VSP_KEEP_FRAMES being set, the output file names do not sort such that the reference frame is next to the failed frame. This can make comparing reference frames and the relevant output frames tedious and difficult. Re-arrange the output filenames such that the sort order will match the option parameters correctly, followed by either the reference frame identifier, or the frame number at the end of the filename string Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- scripts/vsp-lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index 1a356ec02374..5aff30217a27 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -278,12 +278,12 @@ compare_frames() { } if [ $match = "false" -o x$VSP_KEEP_FRAMES = x1 ] ; then - mv $frame ${0/.sh/}-$(basename ${frame/.bin/-$params.bin}) + mv $frame ${0/.sh/}-$params-$(basename ${frame}) fi done if [ x$VSP_KEEP_FRAMES = x1 -o $result = "fail" ] ; then - mv ${frames_dir}ref-frame.bin ${0/.sh/}-ref-frame-$params.bin + mv ${frames_dir}ref-frame.bin ${0/.sh/}-$params-ref-frame.bin else rm -f ${frames_dir}ref-frame.bin rm -f ${frames_dir}frame-*.bin