]> granicus.if.org Git - esp-idf/commitdiff
ci: Count build_example jobs in decimal instead of octal
authorAnton Maklakov <anton@espressif.com>
Thu, 1 Nov 2018 02:41:45 +0000 (10:41 +0800)
committerAnton Maklakov <anton@espressif.com>
Thu, 1 Nov 2018 02:52:19 +0000 (10:52 +0800)
tools/ci/build_examples.sh
tools/ci/build_examples_cmake.sh

index 81576bf553bdfa6908a7de269aeddc92a69dc942..530d6ab2ec547120bc97194e2e11536d55778598 100755 (executable)
@@ -75,7 +75,8 @@ else
     [ -z ${JOB_PATTERN} ] && die "JOB_PATTERN is bad"
 
     # parse number 'NUM' at the end of string 'some_your_text_NUM'
-    JOB_NUM=$( echo ${JOB_NAME} | sed -n -r 's/^.*_([0-9]+)$/\1/p' )
+    # NOTE: Getting rid of the leading zero to get the decimal
+    JOB_NUM=$( echo ${JOB_NAME} | sed -n -r 's/^.*_0*([0-9]+)$/\1/p' )
     [ -z ${JOB_NUM} ] && die "JOB_NUM is bad"
 
     # count number of the jobs
index 849943b938aba6b3e783a366c5850774a9dbb50e..50ce7f1e61d39a4b88dcb00b41df0e0aedec3e0f 100755 (executable)
@@ -80,7 +80,8 @@ else
     [ -z ${JOB_PATTERN} ] && die "JOB_PATTERN is bad"
 
     # parse number 'NUM' at the end of string 'some_your_text_NUM'
-    JOB_NUM=$( echo ${JOB_NAME} | sed -n -r 's/^.*_([0-9]+)$/\1/p' )
+    # NOTE: Getting rid of the leading zero to get the decimal
+    JOB_NUM=$( echo ${JOB_NAME} | sed -n -r 's/^.*_0*([0-9]+)$/\1/p' )
     [ -z ${JOB_NUM} ] && die "JOB_NUM is bad"
 
     # count number of the jobs