From: Eduardo Ramos Testillano Date: Fri, 22 Jan 2016 02:39:26 +0000 (+0100) Subject: remove plus1 variants X-Git-Tag: REFACTORING_TESTING_LIBRARY~54 X-Git-Url: https://git.teslayout.com/public/public/public/?a=commitdiff_plain;h=c23420c0590192eb25ad5344bf1d9485f789e257;p=anna.git remove plus1 variants --- diff --git a/example/diameter/launcher/resources/scripts/clone.sh b/example/diameter/launcher/resources/scripts/clone.sh index f24f785..c84423d 100755 --- a/example/diameter/launcher/resources/scripts/clone.sh +++ b/example/diameter/launcher/resources/scripts/clone.sh @@ -99,14 +99,14 @@ clone() { ################################ EDIT THIS SECTION IF YOU NEED NEW SPECIAL VARIABLES ################################ testid=$sequence seq8=$(printf "%08d" $testid) - seq8_p1=$((seq8+1)) + #seq8_p1=$((seq8+1)) ipv4hex=$seq8 - ipv4hex_p1=$seq8_p1 + #ipv4hex_p1=$seq8_p1 #ipv4=$(for i in $(echo $seq8 | sed 's/\(..\)/0x\1 /g'); do printf "%d." $i; done | sed 's/\.$/\n/') # Numbers beginning with "0" are treated as octal (i.e. base-8): we would have 'invalid octal number with 08 and 09' # Solution: convert to base-10 in this way: $((10#$i)) ipv4=$(for i in $(echo $seq8 | sed 's/\(..\)/ \1 /g'); do printf "%d." $((10#$i)); done | sed 's/\.$/\n/') - ipv4_p1=$(for i in $(echo $seq8_p1 | sed 's/\(..\)/ \1 /g'); do printf "%d." $((10#$i)); done | sed 's/\.$/\n/') + #ipv4_p1=$(for i in $(echo $seq8_p1 | sed 's/\(..\)/ \1 /g'); do printf "%d." $((10#$i)); done | sed 's/\.$/\n/') local target=$wkdir/values.${1} echo "__TESTID__=$testid" > $target