blob: 28f1a6812756a049920e5f1afdd9395e1a8a737b [file] [log] [blame]
#!/usr/bin/python
#
# Copyright (c) 2012 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.
"""Constants for branding parameters (rlz_brand_id, customization_id)."""
import re
RLZ_BRAND_CODE_REGEXP = re.compile('^[A-Z]{4}$')
CUSTOMIZATION_ID_REGEXP = re.compile('^[A-Z0-9]+(-[A-Z0-9]+)?$')
BRAND_CODE_PATH = '/opt/oem/etc/BRAND_CODE'
# Test brand codes. In DVT and beyond, we check in gooftool that the
# brand code is "real" and not one of these.
TEST_BRAND_CODES = ['ZZCR']