From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bp3wG-0003aS-A8 for qemu-devel@nongnu.org; Tue, 27 Sep 2016 21:45:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bp3wB-0007fL-VG for qemu-devel@nongnu.org; Tue, 27 Sep 2016 21:45:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bp3wB-0007fB-OU for qemu-devel@nongnu.org; Tue, 27 Sep 2016 21:45:31 -0400 Date: Wed, 28 Sep 2016 09:45:28 +0800 From: Fam Zheng Message-ID: <20160928014528.GB1284@lemon> References: <1470993574-11906-1-git-send-email-famz@redhat.com> <20160923075807.GH8832@lemon> <33183CC9F5247A488A2544077AF19020B03D674C@SZXEMA503-MBS.china.huawei.com> <20160923095905.GJ8832@lemon> <20160927101435.GJ3967@redhat.com> <33183CC9F5247A488A2544077AF19020B03DB4E4@SZXEMA503-MBS.china.huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <33183CC9F5247A488A2544077AF19020B03DB4E4@SZXEMA503-MBS.china.huawei.com> Subject: Re: [Qemu-devel] [PATCH RFC] tests: Run qtest cases in parallel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gonglei (Arei)" Cc: "Daniel P. Berrange" , "pbonzini@redhat.com" , John Snow , "qemu-devel@nongnu.org" , "Wubin (H)" On Wed, 09/28 01:31, Gonglei (Arei) wrote: > # ./tests/virtio-net-test > ** > ERROR:tests/libqtest.c:561:qtest_get_arch: assertion failed: (qemu != NULL) > Aborted (core dumped) > > # ./tests/virtio-blk-test > ** > ERROR:tests/libqtest.c:561:qtest_get_arch: assertion failed: (qemu != NULL) > Aborted (core dumped) > > But they work after I set the environment variable to specify architecture: > > # QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 ./tests/virtio-net-test > /x86_64/virtio/net/pci/basic: OK > /x86_64/virtio/net/pci/rx_stop_cont: OK > /x86_64/virtio/net/pci/hotplug: OK > > # QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 ./tests/virtio-blk-test > /x86_64/virtio/blk/pci/basic: OK > /x86_64/virtio/blk/pci/indirect: OK > /x86_64/virtio/blk/pci/config: OK > /x86_64/virtio/blk/pci/msix: OK > /x86_64/virtio/blk/pci/idx: OK > /x86_64/virtio/blk/pci/hotplug: OK > > So, Maybe we should add check if the environment relied on is set > before executing specific operations in this kind of tests. Right? Or make a guess based on $(realpath $0]) (in this case, print the found path to avoid testing against wrong binary by mistake). Fam