From: Ian Jackson Subject: [OSSTEST PATCH] cr-daily-branch: Print better message re lack of push Date: Thu, 17 Apr 2014 16:33:45 +0100 Message-ID: <1397748825-9874-1-git-send-email-ian.jackson@eu.citrix.com> References: <21327.62344.66152.521146@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WaoK5-0008IP-R9 for xen-devel@lists.xenproject.org; Thu, 17 Apr 2014 15:33:58 +0000 In-Reply-To: <21327.62344.66152.521146@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org wantpush might be false because - OSSTEST_PUSH is false (only set to true in daily-cron-settings-real) - baseline untested (what we had here) - "$tree" is unknown (although I think this would fail elsewhere) - input and output revisions are the same Print the message "Published tested tree is already up to date" only if that's actually the case. Signed-off-by: Ian Jackson --- cr-daily-branch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cr-daily-branch b/cr-daily-branch index 02fef15..1d5ceb3 100755 --- a/cr-daily-branch +++ b/cr-daily-branch @@ -277,7 +277,11 @@ fi if ! $wantpush; then echo - echo "Published tested tree is already up to date." + if [ "x$NEW_REVISION" = "x$OLD_REVISION" ]; then + echo "Published tested tree is already up to date." + else + echo "Push not applicable." + fi echo elif $push; then echo -- 1.7.10.4