Skip to content

Commit 31bf2fb

Browse files
- Rust test improvement.
1 parent 6165e0b commit 31bf2fb

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

test/robot/functional/stackql.resource

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
*** Variables ***
22
${REPOSITORY_ROOT} ${CURDIR}${/}..${/}..${/}..
33
${LOCAL_LIB_HOME} ${REPOSITORY_ROOT}${/}stackql-core${/}test${/}robot${/}lib
4-
${RUST_TESTING_EXE} ${REPOSITORY_ROOT}${/}target{/}release${/}client_test_harness
4+
${RUST_TESTING_EXE} ${REPOSITORY_ROOT}${/}target${/}release${/}client_test_harness
55
${EXECUTION_PLATFORM} native # to be overridden from command line, eg "docker"
66
${SQL_BACKEND} sqlite_embedded # to be overridden from command line, eg "postgres_tcp"
77
${IS_WSL} false # to be overridden from command line, with string "true"

test/robot/functional/stackql_sessions.robot

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,16 @@ Rust Testing Client Positive Control Notice Messages from GitHub
9797
... & ${posixInput}
9898
${input} = Set Variable If "${IS_WINDOWS}" == "1" ${windowsInput} ${posixInput}
9999
${shellExe} = Set Variable If "${IS_WINDOWS}" == "1" powershell sh
100+
${outputErrStrFragment} = Catenate SEPARATOR=\n
101+
... http response status code: 403
100102
${result} = Run Process
101103
... ${shellExe} \-c ${input}
102104
... stdout=${CURDIR}/tmp/Rust-Testing-Client-Positive-Control-Notice-Messages-from-GitHub.tmp
103105
... stderr=${CURDIR}/tmp/Rust-Testing-Client-Positive-Control-Notice-Messages-from-GitHub-stderr.tmp
104106
Log STDOUT = "${result.stdout}"
105107
Log STDERR = "${result.stderr}"
106-
Should Be Equal ${result.return_code} 0
107-
# Should Contain ${result.stdout} ${outputStr} collapse_spaces=True
108-
# Should Be Empty ${result.stderr}
108+
Should Be Equal ${result.rc} 0
109+
Should Contain ${result.stderr} ${outputErrStrFragment} collapse_spaces=True
109110
[Teardown] Run Keywords Remove Environment Variable PGHOST
110111
... AND Remove Environment Variable PGPORT
111112
... AND Remove Environment Variable PGUSER

0 commit comments

Comments
 (0)