part4custom: add E06 (ValueDeserializer direct) and E07 (mix-in on a record), fix run-all.sh exit-code detection through the grep filter (post #50)
This commit is contained in:
+5
-1
@@ -15,7 +15,11 @@ for f in $(find src/main/java -name '*.java' | sort); do
|
||||
grep -q 'public static void main' "$f" || continue
|
||||
SHORT="${CLASS##*.}"
|
||||
printf '%-52s' "$SHORT"
|
||||
if java -cp "$CP" "$CLASS" > "docs/output/$SHORT.txt" 2>&1; then
|
||||
# grep -v strips the sandbox's injected "Picked up JAVA_TOOL_OPTIONS" proxy-config
|
||||
# notice from stderr - it is an artifact of this environment, not program output.
|
||||
# PIPESTATUS[0] (not grep's own exit code) is what tells us whether java itself failed.
|
||||
java -cp "$CP" "$CLASS" 2>&1 | grep -v '^Picked up JAVA_TOOL_OPTIONS' > "docs/output/$SHORT.txt"
|
||||
if [ "${PIPESTATUS[0]}" -eq 0 ]; then
|
||||
echo "ok"
|
||||
else
|
||||
echo "FAILED"; FAILED=1
|
||||
|
||||
Reference in New Issue
Block a user