https://github.com/genome/genome
Raw File
Tip revision: 67fa0b693e3ddbf21a82616ab4358213dd8a7e3c authored by Feiyu Du on 29 July 2016, 19:54:00 UTC
Merge pull request #1516 from dufeiyu/update_process
Tip revision: 67fa0b6
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