[omd-commits] OMD Git: omd: nagvis: fixed tests

git version control git at mathias-kettner.de
Fri Dec 2 18:54:53 CET 2011


Module:   omd
Branch:   master
Commit:   b75a62f4b8d8b1217fba0c8aaf0cca89752bca7a
URL:      http://omdistro.org/projects/omd/repository/revisions/b75a62f4b8d8b1217fba0c8aaf0cca89752bca7a

Author:   Joerg Linge <pitchfork at pnp4nagios.org>
Date:     Fri Dec  2 18:54:29 2011 +0100
Commiter: Joerg Linge <pitchfork at pnp4nagios.org>
Date:     Fri Dec  2 18:54:29 2011 +0100

nagvis: fixed tests

---

 t/20-package_nagvis.t |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/t/20-package_nagvis.t b/t/20-package_nagvis.t
index 92262fc..95e4468 100644
--- a/t/20-package_nagvis.t
+++ b/t/20-package_nagvis.t
@@ -548,13 +548,13 @@ sub site_nagvis_maincfg_mtime {
 }
 
 sub site_remove_file {
-    unlink '/omd/sites/'.shift.'/'.shift;
+    unlink '/omd/sites/'.shift(@_).'/'.shift(@_);
 }
 
 sub site_write_file {
-    my $path = '/omd/sites/'.shift.'/'.shift;
+    my $path = '/omd/sites/'.shift(@_).'/'.shift(@_);
     open(FILE, '>'.$path) or fail("Could not open file ".$path.".");
-    print FILE shift;
+    print FILE shift(@_);
     close(FILE);
 }
 



More information about the omd-commits mailing list