test: refactor test-readline-interface to be shorter
#38691
+9
−27
Closed