mgmt/crash: Fix printf format string in test.groovy

Fixes the following breakage when running tests in OSv with the "test"
command:

  [/]% test invoke tst-mmap-file.so
  >>> Running test tst-mmap-file.so...

  [snip]

  test invoke tst-mmap-file.so: exception: f != java.lang.Long

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
ls: handle non-existing files correctly

Print an error message instead of just printing the file name
when the file does not exist.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
md5sum: fix ugly spew when file doesn't exist

We'd get an ugly spew if the file doesn't exist. Replace it with
a much nicer message.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
crash: Remove Rhono imports that are not used

The imported classes are not used so remove the import statements.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Moved ELFLoader from cloudius.cli to cloudius.util

Signed-off-by: Or Cohen <orc@fewbytes.com>
Added daemonizeIfNeeded helper method for commands

Useful for ELFLoader (run) and RunJava (java)

Signed-off-by: Or Cohen <orc@fewbytes.com>
Migrated run command from previous CLI

Also implemented another little helper to resolve paths passed in from commands

Signed-off-by: Or Cohen <orc@fewbytes.com>