summaryrefslogtreecommitdiffstats
path: root/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java
diff options
context:
space:
mode:
authorManuel Bentele2021-02-12 12:07:24 +0100
committerManuel Bentele2021-02-12 12:07:24 +0100
commit0d48a4b54de060725e3337af5664e94ba4f1a3ae (patch)
treeca2d8c47b13d20aacbc98e1140970038a52cf98f /core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java
parent[qemu] Add command line argument parsing to 'qemu' runvirt plugin (diff)
downloadmltk-0d48a4b54de060725e3337af5664e94ba4f1a3ae.tar.gz
mltk-0d48a4b54de060725e3337af5664e94ba4f1a3ae.tar.xz
mltk-0d48a4b54de060725e3337af5664e94ba4f1a3ae.zip
[qemu] Add unit tests for run-virt plugin's help option
Diffstat (limited to 'core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java')
-rw-r--r--core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java
index fb72f18a..8a70be33 100644
--- a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java
+++ b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java
@@ -18,17 +18,17 @@ public class App
/**
* Stores name of the run-virt QEMU plugin (command line tool).
*/
- private static final String APP_NAME = "run-virt QEMU plugin";
+ public static final String APP_NAME = "run-virt QEMU plugin";
/**
* Stores description of the run-virt QEMU plugin (command line tool).
*/
- private static final String APP_DESC = "Finalize a Libvirt VM (domain XML) configuration and manage the VM.";
+ public static final String APP_DESC = "Finalize a Libvirt VM (domain XML) configuration and manage the VM.";
/**
* Stores additional information for the run-virt QEMU plugin (command line tool).
*/
- private static final String APP_INFO = "The " + APP_NAME + " is part of the bwLehrpool infrastructure.";
+ public static final String APP_INFO = "The " + APP_NAME + " is part of the bwLehrpool infrastructure.";
/**
* Instance of a logger to log messages.
@@ -64,6 +64,9 @@ public class App
// print command line arguments for debugging purposes
App.printCmdLnArgs( cmdLn );
+
+ // return with successful exit code
+ System.exit( 0 );
}
/**