]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Minor refactoring
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 9 Dec 2014 08:36:07 +0000 (09:36 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 9 Dec 2014 08:36:07 +0000 (09:36 +0100)
novaboot

index 9cc5e1b3640b056cd1ad1e29bf86304239e2ade2..bd81271a8bfd31194b537f8b98307be742c1c138 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -13,6 +13,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+## Initialization
+
 use strict;
 use warnings;
 use warnings (exists $ENV{NOVABOOT_TEST} ? (FATAL => 'all') : ());
@@ -552,6 +554,12 @@ sub system_verbose($)
     if ($ret) { die("Command failure $ret"); }
 }
 
+sub trim($) {
+    my ($str) = @_;
+    $str =~ s/^\s+|\s+$//g;
+    return $str
+}
+
 ## WvTest headline
 
 if (exists $variables->{WVDESC}) {
@@ -906,12 +914,6 @@ if ($variables->{WVTEST_TIMEOUT}) {
     print STDERR "wvtest: timeout ", $variables->{WVTEST_TIMEOUT}, "\n";
 }
 
-sub trim($) {
-    my ($str) = @_;
-    $str =~ s/^\s+|\s+$//g;
-    return $str
-}
-
 ### Start in Qemu
 
 if (defined $qemu) {