Changeset 3276 for monitoring


Ignore:
Timestamp:
08/06/13 14:47:49 (11 years ago)
Author:
sanmai
Message:
  • Work on test script.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • monitoring/plugins/mpi/integration_test.R

    r3275 r3276  
    77                       header    = TRUE,
    88                       quote     = "",
    9                        row.names = NULL);
    10 
    11 command_line_arguments <-
    12     base:::paste(test_info$Nagios.plugin, "-h", test_info$`-h`);
    13    
    14 if (test_info$`-u` != "") {
    15     command_line_arguments <-
    16         base:::c(command_line_arguments,
    17         test_info$`-u`);
    18 }
     9                       row.names = NULL,
     10                       check.names = FALSE
     11                       asIs     = TRUE);
    1912
    2013## test_results has a value equal to the exit status of the scripts with arguments command_line_arguments run.
     
    3225    base:::message(base:::paste("Running test", test_index));
    3326
    34     arg_set <-
    35         command_line_arguments[test_index];
     27    command_line_arguments <-
     28        base:::paste(test_info[test_index,]$command, "-h", test_info[test_index,]$`-h`);
     29   
     30    if (test_info[test_index,]$`-u` != "") {
     31        command_line_arguments <-
     32            base:::c(command_line_arguments,
     33            test_info[test_index,]$`-u`);
     34    }
     35   
     36    browser();
    3637
    3738    test_output <-
    3839        system2(command = "python2",
    39                 args    = arg_set,
     40                args    = command_line_arguments,
    4041                stdout  = TRUE,
    4142                stderr  = TRUE);
Note: See TracChangeset for help on using the changeset viewer.