Changeset 3273 for monitoring


Ignore:
Timestamp:
08/06/13 14:29:44 (11 years ago)
Author:
sanmai
Message:
  • Fix test script and make it work with R versions < 2.15 .
File:
1 edited

Legend:

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

    r3271 r3273  
    1010command_line_arguments <-
    1111    base:::paste(test_info$Nagios.plugin, "-h", test_info$host);
    12 command_line_arguments <- c(command_line_arguments,
    13                             test_info[,5L:ncol(test_info)]);
     12command_line_arguments <-
     13    base:::c(command_line_arguments,
     14    test_info[,5L:ncol(test_info)]);
    1415
    1516## test_results has a value equal to the exit status of the scripts with arguments command_line_arguments run.
     
    2526for (test_index in 1L:base:::length(command_line_arguments))
    2627{
    27     base:::message(base:::paste0("Running test ", test_index));
     28    base:::message(base:::paste("Running test", test_index));
    2829
    2930    arg_set <-
     
    4647
    4748    test_stdout[test_index] <-
    48         base:::paste0(test_output,
     49        base:::paste(test_output,
    4950                      sep = "\n",
    5051                      collapse = "\n");
     
    6364    "/tmp/test_results.tab";
    6465
    65 base:::write.table(test_results_df,
     66utils:::write.table(test_results_df,
    6667                   file            = test_results_file_path,
    6768                   col.names       = TRUE,
     
    6970                   sep             = "\t");
    7071
    71 base:::message(base:::paste0("Written test results to TAB-separated table at '", test_results_file_path, "' ..."));
     72base:::message(base:::paste("Written test results to TAB-separated table at '", test_results_file_path, "' ...", sep = ""));
Note: See TracChangeset for help on using the changeset viewer.