Changes

Summary

  1. [SPARK-37058][REPL][TESTS] Add spark-shell command line unit test (details)
Commit deda62d85f7803c1fd92c21b64ec8a399652ad36 by wenchen
[SPARK-37058][REPL][TESTS] Add spark-shell command line unit test

### What changes were proposed in this pull request?

In current unit tests for `spark-shell`, we don't have an end-to-end  test,  this cause some bug was not captured, in this PR we add a `spark-shell` command line tool's end to end unit test.

### Why are the changes needed?
Add end-to-end unit test for  spark-shell command tool.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Added UT

Closes #34329 from AngersZhuuuu/SPARK-37058.

Authored-by: Angerszhuuuu <angers.zhu@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
The file was addedrepl/src/test/scala/org/apache/spark/repl/SparkShellSuite.scala