diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-10-11 09:50:49 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-10-15 16:48:28 +0200 |
commit | 296bc5fbc5d08ed91771a39f47f02ae90164aa6b (patch) | |
tree | 944ec198593f023caf93cb783335559d63345222 /lavalab-gen.py | |
parent | 24fb00544ba3191216876112d3bad8a742812ed6 (diff) |
Permit to give board to user
By default LAVA give owning of boards to admin, this patch permit to
give board to a specific user.
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-x | lavalab-gen.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py index ce24e2d..12b4807 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -465,6 +465,10 @@ def main(): for tag in board["tags"]: ftag.write("%s\n" % tag) ftag.close() + if "user" in board: + deviceinfo = open("%s/deviceinfo/%s" % (workerdir, board_name), 'w') + deviceinfo.write("DEVICE_USER=%s\n" % board["user"]) + deviceinfo.close() if "custom_option" in board: for coption in board["custom_option"]: device_line += "{%% %s %%}\n" % coption |