Skip to contentSkip to conversation

ci: exit setup on any error

PATCH Applied David Marchand 4 participants 4 messages Aug 8, 2019 – Sep 13, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ci: exit setup on any error

-e is preferrable so that we can catch errors in the middle of this script.
An example is this Travis job [1] that should have errored at the meson install step rather than go to the build step.

Adding debug mode as it can help post-mortem.

1: https://travis-ci.com/DPDK/dpdk/jobs/223511683

---
 .ci/linux-setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.ci/linux-setup.sh +1 -1
index a40e62e..dfb9d4a 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -xe
 
 # need to install as 'root' since some of the unit tests won't run without it
 sudo python3 -m pip install --upgrade meson
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · David Marchand

-e is preferrable so that we can catch errors in the middle of this script.
An example is this Travis job [1] that should have errored at the meson install step rather than go to the build step.

Adding debug mode as it can help post-mortem.

1: https://travis-ci.com/DPDK/dpdk/jobs/223511683

Quoted 17 lines
---
 .ci/linux-setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.ci/linux-setup.sh +1 -2
index a40e62e..dfb9d4a 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -xe
 
 # need to install as 'root' since some of the unit tests won't run without it
 sudo python3 -m pip install --upgrade meson
--

1.8.3.1

Acked-by on v1 1/1
#2 lore raw
In reply to David Marchand
Quoted 11 lines · David Marchand

-e is preferrable so that we can catch errors in the middle of this script.
An example is this Travis job [1] that should have errored at the meson install step rather than go to the build step.

Adding debug mode as it can help post-mortem.

1: https://travis-ci.com/DPDK/dpdk/jobs/223511683

---

Good call.

#3 lore raw

08/08/2019 16:30, Aaron Conole:

Quoted 9 lines
Quoted 7 lines · David Marchand

-e is preferrable so that we can catch errors in the middle of this script.
An example is this Travis job [1] that should have errored at the meson install step rather than go to the build step.

Adding debug mode as it can help post-mortem.

Quoted 8 lines
Quoted 4 lines

1: https://travis-ci.com/DPDK/dpdk/jobs/223511683

---

Good call.

Applied, thanks