Add reef-uni FAFT config
Since the board name has a '-' and that's an illegal character in
Python module names, replace that with underscore instead.
BUG=b:63064784
TEST=FEATURES=test emerge chromeos-base/autotest
Change-Id: Ife7e92279cf4d01598e4ed75cb1b7198f2e3cac5
Reviewed-on: https://chromium-review.googlesource.com/552827
Commit-Ready: Jason Clinton <jclinton@chromium.org>
Tested-by: Jason Clinton <jclinton@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: C Shapiro <shapiroc@google.com>
diff --git a/server/cros/faft/config/config.py b/server/cros/faft/config/config.py
index fb5d9ce..75779e7 100644
--- a/server/cros/faft/config/config.py
+++ b/server/cros/faft/config/config.py
@@ -46,7 +46,7 @@
self._precedence_list = [DEFAULTS.Values()]
# Overrides are optional, and not an error.
try:
- config_name = platform.rsplit('_', 1)[-1].lower()
+ config_name = platform.rsplit('_', 1)[-1].lower().replace("-", "_")
overrides = __import__(config_name, globals(), locals())
overrides = overrides.Values()
# Add overrides to the first position in the list
diff --git a/server/cros/faft/config/reef_uni.py b/server/cros/faft/config/reef_uni.py
new file mode 100644
index 0000000..7b0a3be
--- /dev/null
+++ b/server/cros/faft/config/reef_uni.py
@@ -0,0 +1,11 @@
+# Copyright 2016 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""FAFT config setting overrides for reef-uni."""
+
+from autotest_lib.server.cros.faft.config import reef
+
+class Values(reef.Values):
+ """Inherit overrides from Reef."""
+ pass