mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
Fix runtest case for data to stdout in tool
This commit is contained in:
parent
fba448b145
commit
028d47d707
@ -97,10 +97,10 @@ if (EXISTS ${TEST_FOLDER}/${TEST_OUTPUT}.err)
|
||||
string (REGEX REPLACE "^.*_pmi_alps[^\n]+\n" "" TEST_STREAM "${TEST_STREAM}")
|
||||
|
||||
if (NOT ERROR_APPEND)
|
||||
# append error output to the stdout output file
|
||||
# write back to original .err file
|
||||
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT}.err "${TEST_STREAM}")
|
||||
else ()
|
||||
# write back to original .err file
|
||||
# append error output to the stdout output file
|
||||
file (APPEND ${TEST_FOLDER}/${TEST_OUTPUT} "${TEST_STREAM}")
|
||||
endif ()
|
||||
endif ()
|
||||
@ -125,8 +125,11 @@ message (STATUS "COMMAND Error: ${TEST_ERROR}")
|
||||
|
||||
# remove special output
|
||||
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM)
|
||||
string (REGEX REPLACE "^.*_pmi_alps[^\n]+\n" "" TEST_STREAM "${TEST_STREAM}")
|
||||
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} "${TEST_STREAM}")
|
||||
string (FIND TEST_STREAM "_pmi_alps" "${TEST_FIND_RESULT}")
|
||||
if ("${TEST_FIND_RESULT}" GREATER "0")
|
||||
string (REGEX REPLACE "^.*_pmi_alps[^\n]+\n" "" TEST_STREAM "${TEST_STREAM}")
|
||||
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} ${TEST_STREAM})
|
||||
endif ()
|
||||
|
||||
# if the output file needs Storage text removed
|
||||
if (TEST_MASK)
|
||||
|
@ -53,7 +53,7 @@ usage (const char *prog)
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: parse_command_line
|
||||
*
|
||||
* Purpose: Parse the command line for the h5dumper.
|
||||
* Purpose: Parse the command line.
|
||||
*
|
||||
* Return: Success: void
|
||||
* Failure: Exits program with EXIT_FAILURE value.
|
||||
@ -89,7 +89,7 @@ parse_command_line (int argc, const char *argv[])
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: main
|
||||
*
|
||||
* Purpose: HDF5 user block unjammer
|
||||
* Purpose: HDF5 user block tell size
|
||||
*
|
||||
* Return: EXIT_SUCCESS/EXIT_FAILURE
|
||||
*-------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user