https://github.com/genome/genome
Raw File
Tip revision: 7ce64c49261df5eb97754a1a9173d5fdc2348a7e authored by Thomas B. Mooney on 05 August 2015, 22:43:04 UTC
Merge pull request #894 from tmooney/allow_perl_access_to_model_summary
Tip revision: 7ce64c4
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