|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 for-4.10] scripts: introduce a script for build test
On Mon, Oct 30, 2017 at 03:14:04PM +0000, Ian Jackson wrote:
> Wei Liu writes ("[PATCH v3 for-4.10] scripts: introduce a script for build
> test"):
> > Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
> > Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
> ...
> ...
> > +trap "echo Restoring original HEAD ; git checkout $ORIG_BRANCH" EXIT
>
> This will smash the whole script's exit status. I think you need to
> save/restore $?. Be careful with your quoting. Normally it is better
> for the argument to trap to be ''-quoted rather than "", to avoid it
> being expanded twice (and, the first time, too soon).
>
> Also, if this fails, it leaves the failure message buried in a scrool
> of make -j4 output, where the user probably won't see it. And it
> prints exactly the same message on success and failure. On failure
> you should print the failing commitid, and exit nonzero.
>
> On success you should print some reassuring `ok' message.
>
Right. I've addressed your comments and will send out a new version
soon.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |