Ignore:
Timestamp:
2014-11-28T21:01:27+13:00 (9 years ago)
Author:
ak19
Message:

Related to previous commit 29494 accidentally committed under sjs49 and which was prematurely committed. That commit and this one adds a debug flag to the run_test action of the diffcol task, that will store the intermediate debug files in the top level diffcol folder for inspection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/diffcol/trunk/diffcol/gdbdiff.pm

    r28661 r29495  
    7373sub test_gdb
    7474{
    75     my ($full_modeldb, $full_testdb, $strColName, $test_os, $model_os, $strTestCol, $strModelCol) = @_;
     75    my ($full_modeldb, $full_testdb, $strColName, $test_os, $model_os, $strTestCol, $strModelCol, $debugging) = @_;
    7676
    7777   # print "Now is testing database\n";
     
    8181    my $test_text = read_db($full_testdb);
    8282
    83 #   my $savepath = &getcwd."/../"; # TASK_HOME env var does not exist at this stage, but it's one level up from current directory
    84 #   print_string_to_file($test_text, $savepath.$dbname."_test.out1");   
    85 #   print_string_to_file($model_text, $savepath.$dbname."_model.out1");
     83    my $savepath = &getcwd."/../"; # TASK_HOME env var does not exist at this stage, but it's one level up from current directory
     84    if($debugging) {
     85    print_string_to_file($test_text, $savepath.$dbname."_test.out1");   
     86    print_string_to_file($model_text, $savepath.$dbname."_model.out1");
     87    }
    8688
    8789    # filter out the fields that can be ignored in the two database files
     
    270272    }   
    271273
    272     # now can go back to using $model_text and $test_text
    273 #   print_string_to_file($test_text, $savepath.$dbname."_test.out");   
    274 #   print_string_to_file($model_text, $savepath.$dbname."_model.out");
     274    # now can go back to using $model_text and $test_text
     275
     276    if($debugging) {
     277    print_string_to_file($test_text, $savepath.$dbname."_test.out");   
     278    print_string_to_file($model_text, $savepath.$dbname."_model.out");
     279    }
    275280   
    276281    my $report_type = "OldStyle"; # Can not change this type.
Note: See TracChangeset for help on using the changeset viewer.