test: refactor test-repl-definecommand
The test was writing to both REPL input and output but only checking output. Sending output to both streams seems like it was an error.
/cc @bmeck
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test repl