From 5ec706b035b1213bb82ceabf5e7d160d8003b174 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Thu, 13 Sep 2018 14:02:09 +0200 Subject: Permit to add tags to devices This patch permits to add tags to device Signed-off-by: Corentin Labbe --- lava-slave/scripts/setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lava-slave/scripts') diff --git a/lava-slave/scripts/setup.sh b/lava-slave/scripts/setup.sh index 7cff479..f281f6b 100755 --- a/lava-slave/scripts/setup.sh +++ b/lava-slave/scripts/setup.sh @@ -113,6 +113,13 @@ do lavacli $LAVACLIOPTS devices add --type $devicetype --worker $worker $devicename || exit $? lavacli $LAVACLIOPTS devices dict set $devicename /root/devices/$worker/$device || exit $? fi + if [ -e /root/tags/$devicename ];then + while read tag + do + echo "DEBUG: Add tag $tag to $devicename" + lavacli $LAVACLIOPTS devices tags add $devicename $tag || exit $? + done < /root/tags/$devicename + fi done done -- cgit 1.2.3-korg