Skip to content

Commit

Permalink
improve CLI E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed Oct 20, 2023
1 parent 274277e commit 9d6e782
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/langstream
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
set -ex
set -e

# need this for relative symlinks
PRG="$0"
Expand Down
3 changes: 3 additions & 0 deletions dev/cli-post-release-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ langstream -V
langstream -V | grep $version
langstream -h | grep "Usage: langstream"

# pull before otherwise the test will timeout
docker pull ghcr.io/langstream/langstream-runtime-tester:$version

./mvnw -ntp install -pl langstream-e2e-tests -am -DskipTests -Dspotless.skip -Dlicense.skip
./mvnw -ntp verify -pl langstream-e2e-tests -De2eTests -Dgroups="cli"
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ private static CompletableFuture<Void> runCli(String args) {
@SneakyThrows
private static CompletableFuture<Void> runCli(String args, Map<String, String> env) {
final List<String> allArgs = new ArrayList<>();
allArgs.add("echo");
allArgs.add("starting!!!");
if (env != null) {
String beforeCmd =
env.entrySet().stream()
Expand Down

0 comments on commit 9d6e782

Please sign in to comment.