Toshifumi Fujimura wrote:
# HG changeset patch
# User Toshifumi Fujimura<fujimura.toshifumi(a)np.css.fujitsu.com>
# Date 1225266738 -32400
# Node ID 743d9fcc2cc050f8a299bc29a598332baa754d7a
# Parent 0f340004e1cd48f5ede60a68283a850ae60c9ebe
[PATCH][TEST]#2 Add the revision and the changeset of Cimtest to the
test report
I modify two points.
*strip out everything but the revision number and changeset number
*move Cimtest strings to the get_env_data()
You'll need to include your DCO here.
diff -r 0f340004e1cd -r 743d9fcc2cc0
suites/libvirt-cim/lib/XenKvmLib/reporting.py
--- a/suites/libvirt-cim/lib/XenKvmLib/reporting.py Fri Oct 24
01:04:38 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/reporting.py Wed Oct 29
16:52:18 2008 +0900
@@ -32,6 +32,11 @@
return "Unknown"
return out
+def get_cimtest_version():
+ revision = commands.getoutput("hg parents --template \"{rev}\"
2>/dev/null")
+ changeset = commands.getoutput("hg parents --template
\"{node|short}\" 2>/dev/null")
Can you split this line into two lines - it is longer than 80 characters.
Also, I'm having trouble applying this patch. Can you send the next
version as an attachment?
Thanks!
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com