-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
616 print image process list in nice formatted way #617
616 print image process list in nice formatted way #617
Conversation
…ng stub class to by-pass network use
- Introduced new PhLImageProcess to store data about image process - fixes pharo-project#616
Will add unit tests in additional commit |
Added shortening of string to given size
…g, fixed protocol name to tests
…om processList command
src/PharoLauncher-CLI-Tests/PhLImageProcessListCliCommandTest.class.st
Outdated
Show resolved
Hide resolved
6744620
to
12a48b1
Compare
…string lines of OS command output
@demarey Hi Christophe! Finally had chance to provide needed changes. Please take a look! |
Found the issue in parsing line with process information. I didn't test it with pharo processes that run with --headless parameter (or other vm or image params). Therefore parsing is shifted. |
…llowed by a dot and minor version numbers
…xit code of pgrep.
test new regex for Pharo 12
Co-authored-by: demarey <[email protected]>
Fix for including the builds after build 1258
@demarey Please take a look. Process list identification should be robust enough now, I hope I found all cornercases for pgrep. Should be working both on Linux and MacOS (tested).
Note: There was a funny problem which I could not identify, since pgrep returns exitCode 1 in case of no process match. This resulted in exception in OS Shell command execution in Pharo - since exitSuccess is tested there. Lessons learned (read man pages) :-) |
I did a local merge with dev branch and running tests.
|
|
Yes. And maybe there could be other issues with otherlocalizations. Maybe there is a way to use an ISO format ? |
@demarey: Please try now. |
Not yet
|
This is strange, if I evaluate on my MacOS:
So on my computer works. I don't know. Date formatting to ISO is really clumsy. |
after investigation the command that works on my mac is: |
@Bajger Did you see my PR on this topic on your repository? |
Hi @demarey ! Sorry I didn't recognize that. To resolve conflicts, I need to checkout my branch or https://github.com/pharo-project/pharo-launcher/tree/enh/PR616 ?
|
…nice-formatted-way' into enh/PR616
I just diid the merge. The PR is up to date
|
refactor PhLImageProcess creation and fix date conversion (from ps) on mac os
fixes #616