Merge lp:~kalebral-deactivatedaccount/drizzle-automation/add-crashme-config-file into lp:drizzle-automation

Proposed by Lee Bieber
Status: Merged
Merged at revision: not available
Proposed branch: lp:~kalebral-deactivatedaccount/drizzle-automation/add-crashme-config-file
Merge into: lp:drizzle-automation
Diff against target: 52 lines (+12/-3)
3 files modified
drizzle/automation/config/crashme/crashme.cnf (+4/-0)
drizzle/automation/crashme/run.py (+6/-1)
drizzle/automation/lib/options.py (+2/-2)
To merge this branch: bzr merge lp:~kalebral-deactivatedaccount/drizzle-automation/add-crashme-config-file
Reviewer Review Type Date Requested Status
Jay Pipes Approve
Review via email: mp+17271@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Lee Bieber (kalebral-deactivatedaccount) wrote :

add configuration file for crashme

Revision history for this message
Jay Pipes (jaypipes) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'drizzle/automation/config/crashme'
2=== added file 'drizzle/automation/config/crashme/crashme.cnf'
3--- drizzle/automation/config/crashme/crashme.cnf 1970-01-01 00:00:00 +0000
4+++ drizzle/automation/config/crashme/crashme.cnf 2010-01-13 04:05:22 +0000
5@@ -0,0 +1,4 @@
6+[run]
7+
8+# location of the sql bench repository
9+sqlbench_home= /home/drizzle/repos/sql-bench
10
11=== modified file 'drizzle/automation/crashme/run.py'
12--- drizzle/automation/crashme/run.py 2009-10-27 19:49:11 +0000
13+++ drizzle/automation/crashme/run.py 2010-01-13 04:05:22 +0000
14@@ -31,6 +31,7 @@
15 import os
16 import os.path
17 from drizzle.automation.lib import logging
18+from drizzle.automation.lib import util
19 import commands
20 import datetime
21 import time
22@@ -64,8 +65,12 @@
23 working_dir= variables['working_dir']
24 run_date= datetime.datetime.now().isoformat()
25 server_name= variables['server']
26+ bench_config_name= variables['bench_config_name']
27+
28 # need the location where the sqlbench repository is located to run the crash-me command
29- sqlbench_home= variables['sqlbench']['sqlbench_home']
30+ crashme_config_variables= util.loadConfigFile("crashme", bench_config_name)
31+ sqlbench_home= crashme_config_variables['run']['sqlbench_home']
32+
33 os.chdir(working_dir)
34
35 # For BZR mode, the "version" of the server (used in identifying the
36
37=== modified file 'drizzle/automation/lib/options.py'
38--- drizzle/automation/lib/options.py 2010-01-07 20:48:08 +0000
39+++ drizzle/automation/lib/options.py 2010-01-13 04:05:22 +0000
40@@ -363,10 +363,10 @@
41 os.environ['LD_PRELOAD']= variables['ld_preload']
42 logging.info("LD_PRELOAD is set to %s\n" % variables['ld_preload'])
43
44- # For dbt2, drizzleslap, sqlbench and sysbench, we require that
45+ # For crashme, dbt2, drizzleslap, sqlbench and sysbench, we require that
46 # a configuration file with options is supplied at runtime...
47 command_to_run= variables['command']
48- if command_to_run in ['dbt2','drizzleslap','sqlbench','sysbench']:
49+ if command_to_run in ['crashme', 'dbt2','drizzleslap','sqlbench','sysbench']:
50 # Check to ensure we have a bench_config value...
51 bench_config_name= supplied.bench_config_name
52 if bench_config_name is None:

Subscribers

People subscribed via source and target branches

to all changes: