Changeset 36850


Ignore:
Timestamp:
2022-10-21T17:29:52+13:00 (18 months ago)
Author:
anupama
Message:

Skip tersting windows-only model collection Word-PDF-Enhanced if testing on Linux. If testing on Windows, the model_os setting to be used for diffcol (so that directory separators/slashes are equalised) for this windows-only collection should be Windows, because the model-collect for Word-PDF-Enhanced ought to have been built on Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/diffcol/trunk/task.pl

    r36807 r36850  
    827827   
    828828    for my $collection (@collections) {
     829   
     830        my $model_os_for_collection = $model_os;       
     831        if($collection =~ m/Word-PDF-Enhanced/) {
     832            print STDERR "**** Found windows-scripting collection for Windows only: collection Word-PDF-Enhanced\n";
     833            if($test_os ne "windows") {
     834                print STDERR "**** Can't test windows-specific collection on non-windows test OS: $test_os. Skipping this collection.\n";               
     835                next;
     836            } else {
     837                $model_os_for_collection = "windows";
     838                print STDERR "**** This is a windows-specific collection, its model collection should have been built on windows.\n";
     839                print STDERR "**** Thus switching the OS setting for this model collection to: $model_os_for_collection.\n";
     840            }
     841        }
     842   
    829843        chdir($collect_parent); # for GS3 too, ensure we're first in the collect folder for each collection
    830844
     
    891905    # and what os this test machine is (on which the test cols will be generated)
    892906    my $debug_state = $debugging ? "-debug" : "";
    893     $cmd = "diffcol.pl -testos $test_os -modelos $model_os -output xml -verbosity 10 $debug_state $collection"; # need to run with ./diffcol.pl if bash script
     907    $cmd = "diffcol.pl -testos $test_os -modelos $model_os_for_collection -output xml -verbosity 10 $debug_state $collection"; # need to run with ./diffcol.pl if bash script
    894908
    895909    #print STDERR "Running diffcol cmd: $cmd\n";
Note: See TracChangeset for help on using the changeset viewer.