see an awesome finding by Andrey Kudryavtsev, also we can request post tool to output the Solr response.
oh yeah.. it seems like TestSolrCLIRunExample.testTechproductsExample fails when the same JVM runs SimplePostToolTest and assigns SimplePostTool.mockMode that's PAIN.
meet the reproducer TestPostToolThenExamplesCLI.java ... I'm still crying.
SOLR-10614.patch has the same reproducer suite and also ugly Tes_t names. I don't think we need to commit this.
What's gonna be committed is removing static fields from SimplePostTool, and I'll also add "mock" flag in output to catch such tricks in future.
eager to commit.
Commit dbe6fc5d8f63b4ac87ae015f1cf79ec89c271a01 in lucene-solr's branch refs/heads/master from Mikhail Khludnev
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=dbe6fc5 ]
SOLR-10614: remove static backdoor fields from SimplePostTool.
Commit dbd4c1b1262900620edba0cd67361483ea98e154 in lucene-solr's branch refs/heads/branch_6x from Mikhail Khludnev
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=dbd4c1b ]