From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id B68911FA7B for ; Mon, 19 Jun 2017 19:45:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751032AbdFSTpo (ORCPT ); Mon, 19 Jun 2017 15:45:44 -0400 Received: from bsmtp7.bon.at ([213.33.87.19]:57091 "EHLO bsmtp7.bon.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750844AbdFSTpn (ORCPT ); Mon, 19 Jun 2017 15:45:43 -0400 Received: from dx.site (unknown [93.83.142.38]) by bsmtp7.bon.at (Postfix) with ESMTPSA id 3ws1fs3y9Zz5tlG; Mon, 19 Jun 2017 21:45:41 +0200 (CEST) Received: from [IPv6:::1] (localhost [IPv6:::1]) by dx.site (Postfix) with ESMTP id EC756252; Mon, 19 Jun 2017 21:45:39 +0200 (CEST) Subject: Re: [PATCH v2 0/3] Add regression tests for rectent rebase -i fixes From: Johannes Sixt To: Johannes Schindelin Cc: Junio C Hamano , Phillip Wood , Git Mailing List , =?UTF-8?B?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= , Phillip Wood References: <20170531104213.16944-1-phillip.wood@talktalk.net> <20170614102427.5220-1-phillip.wood@talktalk.net> <3c975634-8651-af74-66bf-ee793bc073fc@kdbg.org> Message-ID: <8be59224-5bb7-50e6-4381-29c250fb10ec@kdbg.org> Date: Mon, 19 Jun 2017 21:45:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <3c975634-8651-af74-66bf-ee793bc073fc@kdbg.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Am 16.06.2017 um 20:43 schrieb Johannes Sixt: > Am 16.06.2017 um 15:49 schrieb Johannes Schindelin: >> On Thu, 15 Jun 2017, Junio C Hamano wrote: >>> diff --git a/t/t3420-rebase-autostash.sh b/t/t3420-rebase-autostash.sh >>> index 325ec75353..801bce25da 100755 >>> --- a/t/t3420-rebase-autostash.sh >>> +++ b/t/t3420-rebase-autostash.sh >>> @@ -45,7 +45,7 @@ create_expected_success_am() { >>> } >>> create_expected_success_interactive() { >>> - cr=$'\r' && >>> + cr=$(echo . | tr '.' '\015') && >>> cat >expected <<-EOF >>> $(grep "^Created autostash: [0-9a-f][0-9a-f]*\$" actual) >>> HEAD is now at $(git rev-parse --short feature-branch) third >>> commit >> >> This is still incorrect, as the \r\n (which $(echo . | tr \.\ '\015') >> would emit) is interpreted correctly as a line break on Windows, meaning >> that cr is now *empty*. Not what we want. >> >> What I did is to replace the `cat` by `q_to_cr` (we have that lovely >> function, might just as well use it), replace `${cr}` by `Q` and skip the >> cr variable altogether. > > You beat me to it. I came up with the identical q_to_cr changes, but > haven't dug the remaining failure regarding the swapped output lines. > You seem to have nailed it. Will test your proposed changes tomorrow. As expected, the patches fix the observed test failures for me, too, if that's still relevant. -- Hannes