Commit a0f65fc
Backport(v1.16): test: use IO#popen instead of Kernel#open (#5182)
Backport #4369
**Which issue(s) this PR fixes**:
N/A
**What this PR does / why we need it**:
open("|command") spawns command and create pipes for processing
pipeline.
This feature of Kernel#open is deprecated, replace it with IO#popen.
It fixes the following warning:
warning: Calling Kernel#open with a leading '|' is deprecated and will
be removed in Ruby 4.0; use IO.popen instead
**Docs Changes**:
N/A
**Release Note**:
N/A
Signed-off-by: Kentaro Hayashi <[email protected]>
Co-authored-by: Kentaro Hayashi <[email protected]>1 parent 18fe509 commit a0f65fc
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
| 572 | + | |
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
| 589 | + | |
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
649 | | - | |
| 648 | + | |
| 649 | + | |
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
| |||
0 commit comments