Break long lines in Inria CI scripts

It's tricky to do this elegantly in sh, sadly...
master
David Allsopp 2018-06-07 14:06:20 +01:00
parent 29423a3f76
commit 4c3c7fda25
2 changed files with 6 additions and 3 deletions

View File

@ -64,9 +64,11 @@ change_exe_magic_number() {
new="$1"
echo Changing executable magic number from ${old} to ${new}
# Change magic number in byterun/caml/exec.h
sed -i 's/\x23define \+EXEC_MAGIC \+\x22'${old}'\x22/#define EXEC_MAGIC "'${new}'"/' byterun/caml/exec.h
sed -i 's/\x23define \+EXEC_MAGIC \+\x22'${old}\
'\x22/#define EXEC_MAGIC "'${new}'"/' byterun/caml/exec.h
# Change magic number in utils/config.mlp
sed -i 's/let \+exec_magic_number \+= \+\x22'${old}'\x22/let exec_magic_number = "'${new}'"/' utils/config.mlp
sed -i 's/let \+exec_magic_number \+= \+\x22'${old}\
'\x22/let exec_magic_number = "'${new}'"/' utils/config.mlp
}
remove_primitive()

View File

@ -21,7 +21,8 @@
# In this context, it is necessary to skip a few tests whose behaviour
# is modified by the instrumentation:
export OCAMLTEST_SKIP_TESTS="tests/afl-instrumentation/afltest.ml tests/runtime-errors/stackoverflow.ml"
export OCAMLTEST_SKIP_TESTS="tests/afl-instrumentation/afltest.ml \
tests/runtime-errors/stackoverflow.ml"
# To know the slave's architecture, this script looks at the OCAML_ARCH
# environment variable. For a given node NODe, this variable can be defined