canonical-hw-cert team mailing list archive
-
canonical-hw-cert team
-
Mailing list archive
-
Message #187126
[Merge] ~canonical-hw-cert/hwcert-jenkins-tools/+git/tf-cmd-scripts:add-tf-firmware-update into ~canonical-hw-cert/hwcert-jenkins-tools/+git/tf-cmd-scripts:master
Nancy Chen has proposed merging ~canonical-hw-cert/hwcert-jenkins-tools/+git/tf-cmd-scripts:add-tf-firmware-update into ~canonical-hw-cert/hwcert-jenkins-tools/+git/tf-cmd-scripts:master.
Commit message:
Add tf-firmware-update for firmware_update phase
https://github.com/canonical/testflinger/pull/141
Requested reviews:
Canonical Hardware Certification (canonical-hw-cert)
For more details, see:
https://code.launchpad.net/~canonical-hw-cert/hwcert-jenkins-tools/+git/tf-cmd-scripts/+merge/457759
--
Your team Canonical Hardware Certification is requested to review the proposed merge of ~canonical-hw-cert/hwcert-jenkins-tools/+git/tf-cmd-scripts:add-tf-firmware-update into ~canonical-hw-cert/hwcert-jenkins-tools/+git/tf-cmd-scripts:master.
diff --git a/tf-firmware-update b/tf-firmware-update
new file mode 100755
index 0000000..6eb0e70
--- /dev/null
+++ b/tf-firmware-update
@@ -0,0 +1,6 @@
+AGENT=$(echo $agent_id | sed 's/-\([0-9]*\)$/\1/g')
+PROVISION_TYPE="$provision_type"
+
+if [ -f /srv/testflinger-agent/$AGENT/testflinger-agent.conf ]; then
+ . /srv/testflinger-agent/$AGENT/env/bin/activate && PYTHONUNBUFFERED=1 testflinger-device-connector $PROVISION_TYPE firmware_update -c /srv/testflinger-agent/$AGENT/default.yaml testflinger.json
+fi