Home | History | Annotate | Download | only in cros

Lines Matching refs:rlz

205     """Get the RLZ brand code from vpd.
211 The current RLZ code or '' if the space doesn't exist
220 def SetRLZ(client, rlz):
221 """Set the RLZ brand code in vpd
225 rlz: 4 character string.
228 TestError if the RLZ code is too long or if setting the code failed.
230 rlz = rlz.strip()
231 if len(rlz) > SYMBOLIC_BID_LENGTH:
232 raise error.TestError('RLZ is too long. Use a max of 4 characters')
234 if rlz == GetRLZ(client):
236 elif rlz:
237 client.run('vpd -s rlz_brand_code=%s' % rlz)
241 if rlz != GetRLZ(client):
242 raise error.TestError('Could not set RLZ code')