diff options
Diffstat (limited to 'crosperf/settings_factory.py')
-rw-r--r-- | crosperf/settings_factory.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crosperf/settings_factory.py b/crosperf/settings_factory.py index d86dc2bc..835748a3 100644 --- a/crosperf/settings_factory.py +++ b/crosperf/settings_factory.py @@ -6,6 +6,8 @@ """Setting files for global, benchmark and labels.""" +import lock_machine + from field import BooleanField from field import FloatField from field import IntegerField @@ -133,6 +135,14 @@ class GlobalSettings(Settings): " se[arated bu a \",\"")) self.AddField(TextField("results_dir", default="", description="The results dir")) + default_locks_dir = lock_machine.Machine.LOCKS_DIR + self.AddField(TextField("locks_dir", default=default_locks_dir, + description="An alternate directory to use for " + "storing/checking machine locks.\n" + "WARNING: If you use your own locks directory, " + "there is no guarantee that someone else might not " + "hold a lock on the same machine in a different " + "locks directory.")) self.AddField(TextField("chrome_src", description="The path to the source of chrome. " "This is used to run telemetry benchmarks. " |