[11u] RFR: 8232834: RunTest sometimes fails to produce valid exitcode.txt

Severin Gehwolf sgehwolf at redhat.com
Thu Jan 9 09:18:36 UTC 2020


On Wed, 2020-01-08 at 20:10 +0100, Severin Gehwolf wrote:
> > http://cr.openjdk.java.net/~goetz/wr20/8232834-RunTest_fails-jdk11/01/
> > https://bugs.openjdk.java.net/browse/JDK-8232834
> > https://hg.openjdk.java.net/jdk/jdk/rev/f67f4674b466
> 
> This seems to have broken running tier1 tests (make run-test-tier1).
> I'm getting a bash syntax error message.
> 
> From the webrev:
> 
> +	$$(call ExecuteWithLog, $$($1_TEST_SUPPORT_DIR)/jtreg, ( \
>  	    $$(JAVA) $$($1_JTREG_LAUNCHER_OPTIONS) \
>  	        -Dprogram=jtreg -jar $$(JT_HOME)/lib/jtreg.jar \
>  	        $$($1_JTREG_BASIC_OPTIONS) \
> @@ -754,7 +754,7 @@
>  	        $$($1_TEST_NAME) \
>  	    && $$(ECHO) $$$$? > $$($1_EXITCODE) \
>  	    || $$(ECHO) $$$$? > $$($1_EXITCODE) \
> -	)
> +	)))
>  
>    $1_RESULT_FILE := $$($1_TEST_RESULTS_DIR)/text/stats.txt
>  
> @@ -828,12 +828,12 @@
>  	$$(call LogWarn)
>  	$$(call LogWarn, Running test '$$($1_TEST)')
>  	$$(call MakeDir, $$($1_TEST_RESULTS_DIR) $$($1_TEST_SUPPORT_DIR))
> -	$$(call ExecuteWithLog, $$($1_TEST_SUPPORT_DIR)/test-execution, \
> +	$$(call ExecuteWithLog, $$($1_TEST_SUPPORT_DIR)/test-execution, ( \
>  	    $$($1_TEST_COMMAND_LINE) \
>  	        > >($(TEE) $$($1_TEST_RESULTS_DIR)/test-output.txt) \
>  	    && $$(ECHO) $$$$? > $$($1_EXITCODE) \
>  	    || $$(ECHO) $$$$? > $$($1_EXITCODE) \
> -	)
> +	)))
> 
> This is different from the JDK HEAD patch. Adds one too many closing brackets.

I've opened a 11-only bug for this here. RFR will be proposed shortly:
https://bugs.openjdk.java.net/browse/JDK-8236848

Thanks,
Severin



More information about the jdk-updates-dev mailing list