summaryrefslogtreecommitdiff
path: root/.gitlab-ci/bare-metal
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2020-08-31 13:04:28 -0700
committerEric Anholt <eric@anholt.net>2020-09-03 23:22:43 +0000
commit0453a46f668e194d23269510c135a806c7114120 (patch)
tree2d7177b940474330924798647b1d5774e3434fb6 /.gitlab-ci/bare-metal
parent24f5f11719713e0027c655f5f189299af6d1da35 (diff)
ci/bare-metal: Fix capturing of serial output as job artifacts.
I tried to put them in the wrong directory -- everything needs to go in results/, which we want clean and ready before we start our job. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6529>
Diffstat (limited to '.gitlab-ci/bare-metal')
-rwxr-xr-x.gitlab-ci/bare-metal/cros-servo.sh5
-rwxr-xr-x.gitlab-ci/bare-metal/cros_servo_run.py4
2 files changed, 3 insertions, 6 deletions
diff --git a/.gitlab-ci/bare-metal/cros-servo.sh b/.gitlab-ci/bare-metal/cros-servo.sh
index 6de59d97a68..b05eaec50ec 100755
--- a/.gitlab-ci/bare-metal/cros-servo.sh
+++ b/.gitlab-ci/bare-metal/cros-servo.sh
@@ -50,7 +50,6 @@ set -ex
# Clear out any previous run's artifacts.
rm -rf results/
mkdir -p results
-find artifacts/ -name serial\*.txt | xargs rm -f
# Create the rootfs in the NFS directory. rm to make sure it's in a pristine
# state, since it's volume-mounted on the host.
@@ -72,9 +71,7 @@ ret=$?
set -e
# Bring artifacts back from the NFS dir to the build dir where gitlab-runner
-# will look for them. Note that results/ may already exist, so be careful
-# with cp.
-mkdir -p results
+# will look for them.
cp -Rp /nfs/results/. results/
exit $ret
diff --git a/.gitlab-ci/bare-metal/cros_servo_run.py b/.gitlab-ci/bare-metal/cros_servo_run.py
index b53763be259..6d7f601e059 100755
--- a/.gitlab-ci/bare-metal/cros_servo_run.py
+++ b/.gitlab-ci/bare-metal/cros_servo_run.py
@@ -35,8 +35,8 @@ class CrosServoRun:
self.sentinel = object()
self.threads_done = 0
- self.ec_ser = SerialBuffer(ec, "artifacts/serial-ec.txt", "R SERIAL-EC> ")
- self.cpu_ser = SerialBuffer(cpu, "artifacts/serial.txt", "R SERIAL-CPU> ")
+ self.ec_ser = SerialBuffer(ec, "results/serial-ec.txt", "R SERIAL-EC> ")
+ self.cpu_ser = SerialBuffer(cpu, "results/serial.txt", "R SERIAL-CPU> ")
self.iter_feed_ec = threading.Thread(target=self.iter_feed_queue, daemon=True, args=(self.ec_ser.lines(),))
self.iter_feed_ec.start()