https://github.com/genome/genome
Raw File
Tip revision: 7306613a6095c4b2eeb80c8c569fce192cae0d79 authored by Thomas B. Mooney on 07 April 2015, 13:28:00 UTC
Merge pull request #638 from tmooney/spaces_in_picard_arguments
Tip revision: 7306613
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