[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [XTF PATCH 3/3] xtf-runner: support two modes for getting output
On Thu, Aug 11, 2016 at 09:33:57AM +0100, Wei Liu wrote: > On Wed, Aug 10, 2016 at 04:07:30PM +0100, Wei Liu wrote: > [...] > > > > +def run_test_logfile(opts, test): > > + """ Run a specific test via grepping log file""" > > + > > + fn = opts.logfile_dir + (opts.logfile_pattern % test) > > + local_time = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()) > > + > > + # Use time to generate unique stamps > > + start_stamp = "===== XTF TEST START %s =====" % local_time > > + end_stamp = "===== XTF TEST END %s =====" % local_time > > + > > + print "Using %s" % fn > > + > > + f = open(fn, "ab") > > + f.write(start_stamp + "\n") > > + f.close() > > + > > I think it would make more sense for the micro VM itself to write > stamps? I want to pass a stamp generated by the runner to micro VMs, otherwise runner wouldn't be able to tell which stamps are the right one. For PV guests it works because there is start_info->cmd_line. Unfortunately I can't seem to find a place for putting in a command line for hvm guest in the ABI. Newer version of Xen will have a boot ABI that supports command line. This mode is mainly for old versions of Xen so I don't see how it is possibly at this stage to uniformly support both old and new versions of Xen. Maybe we need to live with running adding the stamp? Let me know if I miss anything. Wei. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |