blob: 6163db5025677f69b62dda5eaac27650117c6630 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Copyright (C) 2008 Red Hat Inc.
#
# This file is part of systemtap, and is free software. You can
# redistribute it and/or modify it under the terms of the GNU General
# Public License (GPL); either version 2, or (at your option) any
# later version.
import os
import sys
# Here we set up the default config options. These can be overridden
# by the config file.
config_opts = dict()
# Various file names
config_opts['probes_result'] = 'probe.out'
config_opts['probes_all'] = 'probes.all'
config_opts['probes_pending'] = 'probes.pending'
config_opts['probes_current'] = 'probes.current'
config_opts['probes_passed'] = 'probes.passed'
config_opts['probes_failed'] = 'probes.failed'
config_opts['probes_untriggered'] = 'probes.untriggered'
config_opts['probes_unregistered'] = 'probes.unregistered'
# Read in the config file
print "Reading config file..."
cfg = os.path.join(os.getcwd(), 'default.cfg')
if os.path.exists(cfg):
execfile(cfg)
else:
print >>sys.stderr, ("Could not find required config file: %s" % cfg)
sys.exit(1)
|