[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 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?

Wei.

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

 


Rackspace

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