All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Jackson <ian.jackson@eu.citrix.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: xen-devel@lists.xenproject.org, Marcos.Matsunaga@oracle.com
Subject: Re: [PATCH v1 4/7] OssTest: Add target_cmd_root_rc which returns return code.
Date: Thu, 17 Nov 2016 11:53:47 +0000	[thread overview]
Message-ID: <22573.39499.733025.935759@mariner.uk.xensource.com> (raw)
In-Reply-To: <1479346630-122644-5-git-send-email-konrad.wilk@oracle.com>

Konrad Rzeszutek Wilk writes ("[PATCH v1 4/7] OssTest: Add target_cmd_root_rc which returns return code."):
> All the different target_cmd_* end up calling tcmdex
> which has the unfortunate side-effect of calling 'die' if
> the SSH sessions results in any return code not zero.
...
> Also we make tcmd behave in the normal old way (die "status $r")
> or if returnrc is set to one, we will return the error code.

Why not add the $returnrc argument to tcmdex ?  That would mean just
adding an extra argument to the callers, rather than extra code.
(Also I would call it "$badstatusok" or something.)

> -sub target_cmd ($$;$$) { tcmd(undef,undef,'osstest',@_); }
> -sub target_cmd_root ($$;$$) { tcmd(undef,undef,'root',@_); }
> +sub target_cmd ($$;$$) { tcmd(undef,undef,0, 'osstest',@_); }
> +sub target_cmd_root ($$;$$) { tcmd(undef,undef,0, 'root',@_); }
> +sub target_cmd_root_rc ($$;$$) { tcmd(undef,undef,1, 'root',@_); }

Can you call this "target_cmd_root_status" please ?

Thanks,
Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2016-11-17 11:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-17  1:37 [PATCH v1] OSSTest test-harness for livepatches Konrad Rzeszutek Wilk
2016-11-17  1:37 ` [PATCH v1 1/7] ts-xen-build: Enable livepatch Konrad Rzeszutek Wilk
2016-11-17 11:45   ` Ian Jackson
2016-11-17  1:37 ` [PATCH v1 2/7] ts-xen-build: Build the livepatch test-cases Konrad Rzeszutek Wilk
2016-11-17  1:37 ` [PATCH v1 3/7] ts-xen-build: Install livepatch regressions tests Konrad Rzeszutek Wilk
2016-11-17 11:49   ` [PATCH v1 3/7] ts-xen-build: Install livepatch regressions tests. [and 1 more messages] Ian Jackson
2016-11-21 21:28     ` Konrad Rzeszutek Wilk
2016-12-12 16:12       ` Ian Jackson
2016-11-17  1:37 ` [PATCH v1 4/7] OssTest: Add target_cmd_root_rc which returns return code Konrad Rzeszutek Wilk
2016-11-17 11:53   ` Ian Jackson [this message]
2016-11-17  1:37 ` [PATCH v1 5/7] ts-livepatch: Initial test-cases Konrad Rzeszutek Wilk
2016-11-17 12:21   ` Ian Jackson
2016-11-21 22:47     ` Konrad Rzeszutek Wilk
2016-12-12 16:17       ` Ian Jackson
2016-11-17  1:37 ` [PATCH v1 6/7] sg-run-job: Add the test-livepatch Konrad Rzeszutek Wilk
2016-11-17 12:23   ` Ian Jackson
2016-11-17  1:37 ` [PATCH v1 7/7] make-flight/mfi-common: Add them in the matrix Konrad Rzeszutek Wilk
2016-11-17 12:24   ` Ian Jackson
2016-12-12 19:01     ` Konrad Rzeszutek Wilk
2016-12-12 16:19       ` Ian Jackson
2016-11-17 12:28 ` [PATCH v1] OSSTest test-harness for livepatches Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22573.39499.733025.935759@mariner.uk.xensource.com \
    --to=ian.jackson@eu.citrix.com \
    --cc=Marcos.Matsunaga@oracle.com \
    --cc=konrad.wilk@oracle.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.