[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XEN PATCH] CI: Rework RISCV smoke test


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Artem Mygaiev <Artem_Mygaiev@xxxxxxxx>
  • Date: Tue, 14 Nov 2023 08:09:23 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EgFwG9Rush+7cKU9jw1scZ8gNa1+xxLag5ZuEc4dAGY=; b=Km0O4knLrSqkqlz16z+tJlX2t5TTgdvbFGMAWy8MLsmbxXlQiGuE3GkWMkKi6OMXxHwzDmNLGRZstVIjmMR9SQNqhJqsPjWfyb5Mu/aPxn+vLN2HJQUm1a5X3+Xpk/nwNpdaMVm7+8EjjMN3kTolQJYYhN7xsdfvN9seljq+xoW3uwv4YIeNGRXk8m2RlQQxyarzJ5ISX+SrJKG/ILH6K45dc81zDof1lQ7RfReu9aY+qCzb+epd0/frUyI5RpWEIvzBPHpWUVNoKTNoEmGjkEhYw669haUYA1Pypz7yCmD15CqAT5Si0w0R0rflTeMLm0lLa9spuhDuEA9FgjlGHw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DSWrWuHT+K6Ev7EmIwnooFvTibmQHWkm6bIH/09iG4I/AecVOwhEehNjZMfrqOWOrfXOwX0BVZ7PVaKUk8EzYwO9/rKOyPbv7DIKoAdndB0eR6vldxrZACLcc1II+kePpns3xQtmpNR2atbmE322Q+m85OfqoXOA4Mg4uUPHxg8r9Mt4u0EqnXFkPsEcaeNa5lEFd/70W4VTXXhdz7DZAE2UM8wDW6qVdHp8Dv8nQGIWJnSHuvbgkseGhisArTyZRdZZAApm9qn+Dwav+48WzkJtIuh+dbK6MoU2DnyOg53CGR4Kfuk3+FFvON1T7aHKU07v8lOpCUqnkwU3rp2vVg==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>
  • Delivery-date: Tue, 14 Nov 2023 08:09:51 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Msip_labels:
  • Thread-index: AQHaEyRiRGjxF1HRw0OhccL4raMQTrByM/8AgACIxgCABaGGgIAAmjOAgACBcQg=
  • Thread-topic: [XEN PATCH] CI: Rework RISCV smoke test

Hi Stefano, Anthony

On Mon, 13 Nov 2023, Anthony PERARD wrote:
> On Thu, Nov 09, 2023 at 05:02:08PM -0800, Stefano Stabellini wrote:
> > ### qemu_key.sh is using "expect", see below. I think we should be able
> > ### to achieve the same by using expect to close on the expected string
> > ### (instead of waiting for eof)
> 
> So, `expect` is just a different kind of language than shell is?
> Also, `grep -q` doesn't wait for EOF, and just exit as soon as it found
> the pattern.

Just a brief background on `expect`: it is a nice tool widely used in testing of
embedded Linux systems with CLI. It is popular because it is small and available
for basically every distro including very old ones, and it is very flexible. We
were using it for ages in automated testing, so for me it was no-brainer to pick
it when we needed to "interact" with console.

One minor drawback though is that `expect` uses Tcl for scripting, not shell :)

 -- Artem


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.