mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-24 15:40:03 +00:00
Clarify some comments
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
568f53a9d8
commit
ec135544c8
@ -2714,8 +2714,11 @@ pseudo_component_error_test () {
|
|||||||
echo "Expect three failing commands."
|
echo "Expect three failing commands."
|
||||||
fi
|
fi
|
||||||
error_test='this should not be used since the component runs in a subshell'
|
error_test='this should not be used since the component runs in a subshell'
|
||||||
|
# Expected error: 'grep non_existent /dev/null -> 1'
|
||||||
grep non_existent /dev/null
|
grep non_existent /dev/null
|
||||||
|
# Expected error: '! grep -q . tests/scripts/all.sh -> 1'
|
||||||
not grep -q . "$0"
|
not grep -q . "$0"
|
||||||
|
# Expected error: 'make unknown_target -> 2'
|
||||||
make unknown_target
|
make unknown_target
|
||||||
false "this should not be executed"
|
false "this should not be executed"
|
||||||
}
|
}
|
||||||
@ -2735,8 +2738,11 @@ run_component () {
|
|||||||
esac
|
esac
|
||||||
"${dd_cmd[@]}"
|
"${dd_cmd[@]}"
|
||||||
|
|
||||||
# Run the component in a subshell
|
# Run the component in a subshell, with error trapping and output
|
||||||
|
# redirection set up based on the relevant options.
|
||||||
if [ $KEEP_GOING -eq 1 ]; then
|
if [ $KEEP_GOING -eq 1 ]; then
|
||||||
|
# We want to keep running if the subshell fails, so 'set -e' must
|
||||||
|
# be off when the subshell runs.
|
||||||
set +e
|
set +e
|
||||||
fi
|
fi
|
||||||
(
|
(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user