swh:1:snp:5789d5563ae0ff1fac9d4620526a6e02863df326
Raw File
Tip revision: 5574d465140630644fc14219d770c1938d6b4d8c authored by Jason Walker on 21 August 2015, 21:53:33 UTC
Merge pull request #955 from genome/revert-951-new_annotation_structure
Tip revision: 5574d46
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