Skip to content

Commit

Permalink
runltp: Fix export assignment for Dash
Browse files Browse the repository at this point in the history
When we try to create hlml file on Dash it is failed. The runltp.sh try to save
the start time and the end time by `date.` But the value of `date` contains some
whitespaces and Dash split the value base on whitespace. So the assignment by
export fails. It looks Dash's bug but we can write 'export="${date}" as a manner.
Bash does not perform splitting on export, local and readonly so it works well on
Bash.

Signed-off-by: Jungsu Sohn <jsson98@gmail.com>
  • Loading branch information
johnlukeabe committed Oct 27, 2016
1 parent 0119096 commit 0b08cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runltp
Expand Up @@ -876,8 +876,8 @@ main()

if [ "$ALT_HTML_OUT" -eq 1 ] ; then #User wants the HTML output to be created, it then needs to be generated
export LTP_VERSION=$version_date
export TEST_START_TIME=$test_start_time
export TEST_END_TIME=$(date)
export TEST_START_TIME="$test_start_time"
export TEST_END_TIME="$(date)"
OUTPUT_DIRECTORY=`echo $OUTPUTFILE | cut -c4-`
LOGS_DIRECTORY="$LTPROOT/results"
export TEST_OUTPUT_DIRECTORY="$LTPROOT/output"
Expand Down

0 comments on commit 0b08cf1

Please sign in to comment.