You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2020/10/09 09:10:40 UTC

[GitHub] [ignite] isapego commented on a change in pull request #8331: IGNITE-13551 .NET: Enable ClientServerCompatibilityTest on Linux

isapego commented on a change in pull request #8331:
URL: https://github.com/apache/ignite/pull/8331#discussion_r502285248



##########
File path: modules/core/src/test/java/org/apache/ignite/platform/PlatformProcessUtils.java
##########
@@ -0,0 +1,111 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ignite.platform;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.util.concurrent.ForkJoinPool;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+
+import org.apache.ignite.IgniteException;
+
+/**
+ * Platform process utils for tests.
+ */
+@SuppressWarnings("unused") // Called from Platform.
+public class PlatformProcessUtils {
+    /** */
+    private static volatile Process process;
+
+    /**
+     * Starts a new process.
+     *
+     * @param file Executable name.
+     * @param arg1 Argument.
+     * @param arg2 Argument.
+     * @param workDir Work directory.
+     * @param waitForOutput A string to look for in the output.
+     */
+    public static void startProcess(String file, String arg1, String arg2, String workDir, String waitForOutput)
+            throws Exception {
+        if (process != null)
+            throw new Exception("PlatformProcessUtils can't start more than one process at a time.");

Review comment:
       Is this a limitation, or do we just not need several processes right now and this was the simpliest implementation?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org