commit | 80369a96a2eb73d27b9f70342c4833eda5e9a2d8 | [log] [tgz] |
---|---|---|
author | Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp> | Mon Apr 06 23:41:14 2015 +0000 |
committer | Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp> | Thu Jun 18 00:41:22 2015 +0000 |
tree | 47a0e922dcc6557a8100d88e09857bf12f3a600c | |
parent | b93e67690c35285e1fc01bfa02f7c0f9fe079765 [diff] |
Add a rule for blocking "-" from rand_name call data_utils.rand_name() appends randam charactors with a hypen like: def rand_name(name=''): randbits = str(random.randint(1, 0x7fffffff)) if name: return name + '-' + randbits So it is not necessary to specify a hypen in caller side. This patch adds a hacking rule for blocking "-" at the end of argument of rand_name() calls. Change-Id: I9b9f25dbe5a3ef5ac5900113bcc46e0d911becc9