Details
-
Improvement
-
Status: Reopened
-
Not a Priority
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Currently, there is a lot of process execution logic in both the production and testing components of Flink. It would be good to provide something like ProcessExecutionUtils in flink-core to achieve code deduplication.
This class provides helper method to execute simple bash commands/scripts, with/without returning the exit value, stdout and stderr. For more complicated process, it could leverage this class or have their specific implementation, just like TestJvmProcess.
For instance:
- JavaBashTestBase#executeScript
- Hardware#getSizeOfPhysicalMemoryForMac
- MassiveStringSorting#testStringTuplesSorting
- etc.