-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virtme-ng: channel the return code of a command to the host
Send the return code of the command executed inside the guest to the host. This allows to run commands inside a guest and give users the impression that they are running on the host. Examples: $ vng -r -- true && echo OK || echo ERROR: $? OK $ vng -r -- false && echo OK || echo ERROR: $? ERROR: 1 $ vng -r -- exit 22 && echo OK || echo ERROR: $? ERROR: 22 This feature is particularly useful for automation/CI, since it easily allows to check the return code of a script executed inside virtme-ng as if it was running directly on the host. This fixes issue #48. Signed-off-by: Andrea Righi <[email protected]>
- Loading branch information
Andrea Righi
committed
Jan 31, 2024
1 parent
4381750
commit 25b2095
Showing
4 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters