Received: from eggs.gnu.org ([2001:4830:134:3::10]:37315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WooQz-0006Ik-UJ for qemu-devel@nongnu.org; Mon, 26 May 2014 02:31:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WooQs-0001PA-Ew for qemu-devel@nongnu.org; Mon, 26 May 2014 02:30:57 -0400 Received: from oxygen.pond.sub.org ([144.76.244.19]:46275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WooQs-0001P4-9q for qemu-devel@nongnu.org; Mon, 26 May 2014 02:30:50 -0400 From: Markus Armbruster References: <1400508595-23024-1-git-send-email-somlo@cmu.edu> <20140519194448.GA14502@redhat.com> <20140523012711.GA6121@crash.ini.cmu.edu> <20140523090012.GA11815@redhat.com> <20140523210111.GB16630@crash.ini.cmu.edu> Date: Mon, 26 May 2014 08:30:48 +0200 In-Reply-To: <20140523210111.GB16630@crash.ini.cmu.edu> (Gabriel L. Somlo's message of "Fri, 23 May 2014 17:01:11 -0400") Message-ID: <87ppj1aw6f.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v4 0/3] SMBIOS cleanup round List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gabriel L. Somlo" Cc: pbonzini@redhat.com, kraxel@redhat.com, lersek@redhat.com, qemu-devel@nongnu.org, "Michael S. Tsirkin" "Gabriel L. Somlo" writes: > On Fri, May 23, 2014 at 12:00:12PM +0300, Michael S. Tsirkin wrote: >> > 1. There's a fairly complex setup (create a boot disk, start the >> > guest, loop around waiting for the bios to finish booting, watch >> > when your disk-based boot loader runs, etc.) before starting to >> > examine the guest memory for the presence and correctness of the acpi >> > tables. >> > >> > Would it make sense to rename this file to something like e.g. >> > tests/biostables-test.c, and add checks for smbios to the already >> > started and booted guest ? >> > >> > If not, I'd have to replicate most of your test-harness code, >> > which is almost half of acpi-test.c. That shouldn't be hard (you >> > already did the heavy lifting on that one), but I intuitively dislike >> > multiple cut'n'paste clones of significant code fragments :) >> >> Sure, fine. > > So I was about to send a patch with acpi-test.c renamed to > bios-tables-test.c, but the patch is basically removing all of > acpi-test.c, and creating a new file bios-tables-test.c. Err, isn't that what a rename does? > Do you have a better way to rename the file first, and then I can > send a patch against it ? Or should we give up on renaming it > altogether ? Or should I just bite the bullet and cut'n'paste your > test harness into a new file specific to smbios ? > > It's not particularly important to me which way we go -- I want to do > the right thing, whatever you decide that is :) Did you rename with git-mv? Did you diff with rename detection on? See diff.renames in git-config(1). [...]