https://github.com/genome/genome
Raw File
Tip revision: f1d99a79875219809eda9fd0ea2d868fa9b562b4 authored by Thomas B. Mooney on 18 August 2015, 15:48:03 UTC
Merge pull request #922 from tmooney/cleanup_warnings_in_composite_workflow_test
Tip revision: f1d99a7
submodule.bats
#!/usr/bin/env bats

load test_helper

function setup {
    init_workspace
    export GE_NO_REDIRECT=1
    cd $WORKSPACE/genome
}

function teardown {
    rm_workspace
}

@test "unclean submodule fails" {
    git submodule update --init ur
    echo >> ur/lib/UR.pm
    run $BATS_TEST_DIRNAME/../bin/genome-env
    test "$status" -ne 0
}

@test "submodule with commits fails" {
    git submodule update --init ur
    (
        cd ur
        echo >> lib/UR.pm
        git commit -m whitespace lib/UR.pm
    )
    run $BATS_TEST_DIRNAME/../bin/genome-env
    test "$status" -ne 0
}
back to top