From: Dario Faggioli <dario.faggioli@citrix.com>
To: robert.hu@intel.com
Cc: Wei Liu <wei.liu2@citrix.com>,
Ian.Campbell@citrix.com, Ian.Jackson@eu.citrix.com,
xen-devel@lists.xen.org, "longtao.pang" <longtaox.pang@intel.com>,
di.zheng@intel.com
Subject: Re: [OSSTEST PATCH 1/4] Add nested testcase of preparing and installing L1 guest VM
Date: Fri, 2 Jan 2015 10:51:09 +0100 [thread overview]
Message-ID: <1420192269.30581.42.camel@Abyss.station> (raw)
In-Reply-To: <1419570818.28100.2.camel@localhost>
[-- Attachment #1.1: Type: text/plain, Size: 3717 bytes --]
On Fri, 2014-12-26 at 13:13 +0800, Robert Hu wrote:
> On Thu, 2014-12-11 at 11:06 +0000, Wei Liu wrote:
> > ?
> >
> > > die unless $entry;
> > > $entry->{KernDom0}= $1;
> > > $entry->{KernVer}= $2;
> > > }
> > > - if (m/^\s*module\s*\/(initrd\S+)/) {
> > > + if (m/^\s*module\s*(?:\/boot)*\/(initrd\S+)/) {
> > > $entry->{Initrd}= $1;
> > > }
> > > }
> >
> > As I said before, this hunk should be in its own patch.
> >
> > Just FYI, there are multiple people (Dario, you and I) touching this
> > piece of code. You might want to keep an eye on main OSSTest git tree
> > and rebase before reposting (and so do Dario and I).
>
Indeed. :-)
> > > diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
> > > @@ -55,8 +55,9 @@ BEGIN {
> > > target_putfilecontents_stash
> > > target_putfilecontents_root_stash
> > > target_put_guest_image target_editfile
> > > - target_editfile_root target_file_exists
> > > - target_run_apt
> > > + target_editfile_root target_file_exists
> > > + target_file_exists_root
> > > + target_run_apt
> >
> > Please don't just change white spaces. This makes patches hard to
> > review.
> >
> > > target_install_packages target_install_packages_norec
> > > target_jobdir target_extract_jobdistpath_subdir
> > > target_extract_jobdistpath target_guest_lv_name
> > > @@ -67,7 +68,7 @@ BEGIN {
> > > selecthost get_hostflags get_host_property
> > > get_host_native_linux_console
> > > power_state power_cycle power_cycle_time
> > > - serial_fetch_logs
> > > + serial_fetch_logs select_ether
> > > propname_massage
> > >
> > > get_stashed open_unique_stashfile compress_stashed
> > > @@ -109,6 +110,7 @@ BEGIN {
> > > iso_gen_flags_basic
> > > iso_copy_content_from_image
> > > guest_editconfig_nocd
> > > + guest_editconfig_cd
> >
> > Indentation. I think we mostly use space instead of hard tab. Ian?
> So what's the convention in Xen code writing? use space instead of tab?
> And how many space to substitute 1 tab? I used to use 4.
>
Xen's coding style is described in various CODING_STYLE files, within
the Xen's tree.
For example, for the hypervisor, this one:
http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=CODING_STYLE;h=95842e39c967ec0c100f9337ad4b245fbff1a53f;hb=refs/heads/staging
For libxl, this other one:
http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=tools/libxl/CODING_STYLE;h=f5b58909b34d158f4c06bb3e279f6648b1aa01ec;hb=refs/heads/staging
However, OSSTest is not Xen, so whatever Xen coding style is, it does
not really matter here. :-)
There actually is no formally defined coding style, and in fact, there
is no CODING_STYLE file in OSSTest's tree. The idea is to follow the
prevalent style of the file you're modifying.
For instance, in case of TestSupport.pm it seems that spaces are used,
and that indentation happens by means of 4 spaces.
Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2015-01-02 9:51 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-10 8:07 [OSSTEST PATCH 0/4] Introduction of the patches longtao.pang
2014-12-10 8:07 ` [OSSTEST PATCH 1/4] Add nested testcase of preparing and installing L1 guest VM longtao.pang
2014-12-11 11:06 ` Wei Liu
2014-12-26 5:13 ` Robert Hu
2015-01-02 9:51 ` Dario Faggioli [this message]
2014-12-10 8:07 ` [OSSTEST PATCH 2/4] Build XEN and HVM Dom0 kernel for " longtao.pang
2014-12-11 11:25 ` Wei Liu
2015-01-27 8:33 ` Hu, Robert
2015-01-27 11:01 ` Ian Campbell
2015-01-29 6:05 ` Hu, Robert
2014-12-10 8:07 ` [OSSTEST PATCH 3/4] Add nested testcase of installing L2 " longtao.pang
2014-12-11 11:43 ` Wei Liu
2015-01-06 3:28 ` Pang, LongtaoX
2015-01-06 16:52 ` Wei Liu
2015-01-07 3:52 ` Pang, LongtaoX
2015-01-08 7:34 ` Pang, LongtaoX
2015-01-08 10:48 ` Wei Liu
2015-01-08 11:12 ` Ian Campbell
2015-01-08 11:16 ` Ian Jackson
2015-01-08 11:22 ` Robert Hu
2015-01-08 11:26 ` Ian Campbell
2015-01-08 17:20 ` Dario Faggioli
2015-01-08 17:25 ` Ian Campbell
2015-01-09 2:46 ` Pang, LongtaoX
2014-12-10 8:07 ` [OSSTEST PATCH 4/4] Insert nested test job name and runvars into longtao.pang
2014-12-11 11:46 ` Wei Liu
2015-01-06 3:31 ` Pang, LongtaoX
2015-01-29 9:57 ` Hu, Robert
2015-01-29 10:42 ` Wei Liu
2015-01-29 10:52 ` Ian Campbell
2015-01-29 10:55 ` Ian Campbell
2014-12-11 10:38 ` [OSSTEST PATCH 0/4] Introduction of the patches Wei Liu
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=1420192269.30581.42.camel@Abyss.station \
--to=dario.faggioli@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=di.zheng@intel.com \
--cc=longtaox.pang@intel.com \
--cc=robert.hu@intel.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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.