From 3ab649142f70bf96934e11de1da11ddb366d87a6 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 18 Feb 2009 22:04:05 +0000 Subject: [PATCH] populate after stress test --- system/TestPlc.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/system/TestPlc.py b/system/TestPlc.py index b37c108..319ca9c 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -71,7 +71,7 @@ class TestPlc: 'init_node','bootcd', 'configure_qemu', 'export_qemu', 'kill_all_qemus', 'reinstall_node','start_node', SEP, # better use of time: do this now that the nodes are taking off - 'plcsh_stress_test', SEP, + 'plcsh_stress_test', 'populate' , SEP, 'nodes_ssh_debug', 'nodes_ssh_boot', 'check_slice', 'check_initscripts', SEP, 'check_tcp', SEP, 'check_sanity', SEP, @@ -897,6 +897,22 @@ class TestPlc: command += " --tiny" return ( self.run_in_guest(command) == 0) + # populate runs the same utility without slightly different options + # in particular runs with --preserve (dont cleanup) and without --check + # also it gets run twice, once with the --foreign option for creating fake foreign entries + def populate (self): + # install the stress-test in the plc image + location = "/usr/share/plc_api/plcsh_stress_test.py" + remote="/vservers/%s/%s"%(self.vservername,location) + self.test_ssh.copy_abs("plcsh_stress_test.py",remote) + command = location + command += " -- --preserve --short-names" + local = (self.run_in_guest(command) == 0); + # second run with --foreign + command += ' --foreign' + remote = (self.run_in_guest(command) == 0); + return ( local and remote) + def gather_logs (self): # (1.a) get the plc's /var/log/ and store it locally in logs/myplc.var-log./* # (1.b) get the plc's /var/lib/pgsql/data/pg_log/ -> logs/myplc.pgsql-log./* -- 2.43.0