[
https://issues.apache.org/jira/browse/FLINK-17574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Flink Jira Bot updated FLINK-17574:
-----------------------------------
Labels: stale-minor (was: )
> Deduplicate the process execution logic in Flink
> ------------------------------------------------
>
> Key: FLINK-17574
> URL: https://issues.apache.org/jira/browse/FLINK-17574
> Project: Flink
> Issue Type: Improvement
> Components: Tests
> Reporter: Yangze Guo
> Priority: Minor
> Labels: stale-minor
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)