Changeset f49f6e2


Ignore:
Timestamp:
Aug 31, 2017 3:43:53 PM (3 weeks ago)
Author:
www-data <www-data@…>
Branches:
master
Children:
1905f2d
Parents:
ebe87df
git-author:
Bang Pham Huu <b.phamhuu@…> (08/31/17 09:04:42)
git-committer:
www-data <www-data@…> (08/31/17 15:43:53)
Message:

ticket:1603 - SystemTest_Test wcst_import should remove obsolete cases when running test

Summary:
When a test in test wcst_import folder is renamed in a new patch and the patch is applied, the old test case folder still exists due to it contains a file ingest.json.
Then, wcst_import test still runs this test but it could not find the data files, so just returns as a failed case. Test wcst_import should remove these obsolete cases instead of running them.

Test Plan: Run tst wcst_import test.

Reviewers: dmisev

Differential Revision: http://codereview.rasdaman.org/D459

File:
1 edited

Legend:

Unmodified
Added
Removed
  • systemtest/testcases_services/test_all_wcst_import/test.sh

    r2ed39f5 rf49f6e2  
    8484    # 1.1 get the recipe in $test_case directory (NOTE: -L to find in symbolic directory)
    8585    recipe_file_template=$(find -L $test_case -type f -name "*.template.json")
     86    if [ -z "$recipe_file_template" ]; then
     87        log "Test case '$test_case' is obsolete, removing."
     88        rm -rf "$test_case"
     89        continue
     90    fi
    8691
    8792    # 1.2 copy the template file to ingest.json (this file will be used to ingest data)
Note: See TracChangeset for help on using the changeset viewer.