*** Setting ***
Resource          atest_resource.robot

*** Variable ***
${ORIG_START}     Set in Create Output With Robot
${ORIG_END}       -- ;; --
${ORIG_ELAPSED}   -- ;; --

*** Keyword ***
Create Output With Robot
    [Arguments]    ${outputname}    ${options}    ${sources}
    Run Tests    ${options}    ${sources}
    Timestamp Should Be Valid    ${SUITE.starttime}
    Timestamp Should Be Valid    ${SUITE.endtime}
    Elapsed Time Should Be Valid    ${SUITE.elapsedtime}
    Set Suite Variable    $ORIG_START    ${SUITE.starttime}
    Set Suite Variable    $ORIG_END    ${SUITE.endtime}
    Set Suite Variable    $ORIG_ELAPSED    ${SUITE.elapsedtime}
    Run Keyword If    "${outputname}"    Move File    ${OUTFILE}    ${outputname}

Check times
    [Arguments]    ${item}    ${start}    ${end}    ${elapsed}
    Should Be Equal    ${item.starttime}    ${start}
    Should Be Equal    ${item.endtime}    ${end}
    Should Be Equal As Integers    ${item.elapsedtime}    ${elapsed}

*** Setting ***
Resource          atest_resource.robot

*** Variable ***
${ORIG_START}     Set in Create Output With Robot
${ORIG_END}       -- ;; --
${ORIG_ELAPSED}   -- ;; --

*** Keyword ***
Create Output With Robot
    [Arguments]    ${outputname}    ${options}    ${sources}
    Run Tests    ${options}    ${sources}
    Timestamp Should Be Valid    ${SUITE.starttime}
    Timestamp Should Be Valid    ${SUITE.endtime}
    Elapsed Time Should Be Valid    ${SUITE.elapsedtime}
    Set Suite Variable    $ORIG_START    ${SUITE.starttime}
    Set Suite Variable    $ORIG_END    ${SUITE.endtime}
    Set Suite Variable    $ORIG_ELAPSED    ${SUITE.elapsedtime}
    Run Keyword If    $outputname    Move File    ${OUTFILE}    ${outputname}

Check times
    [Arguments]    ${item}    ${start}    ${end}    ${elapsed}
    Should Be Equal    ${item.starttime}    ${start}
    Should Be Equal    ${item.endtime}    ${end}
    Should Be Equal As Integers    ${item.elapsedtime}    ${elapsed}

Fix running tests when pwd contains non-ASCII characters.
Fix running tests when pwd contains non-ASCII characters.

See PR #2236 for details.

joongh/robotframework,snyderr/robotframework,jaloren/robotframework,HelioGuilherme66/robotframework,snyderr/robotframework,alexandrul-ci/robotframework,joongh/robotframework,jaloren/robotframework,alexandrul-ci/robotframework,jaloren/robotframework,robotframework/robotframework,robotframework/robotframework,robotframework/robotframework,alexandrul-ci/robotframework,HelioGuilherme66/robotframework,HelioGuilherme66/robotframework,joongh/robotframework,jaloren/robotframework,alexandrul-ci/robotframework,joongh/robotframework,snyderr/robotframework,joongh/robotframework,alexandrul-ci/robotframework,jaloren/robotframework,snyderr/robotframework,snyderr/robotframework