https://github.com/genome/genome
Raw File
Tip revision: c4912e0e7cd18a22978c5f60cf9eed0a8dfdfb60 authored by Thomas B. Mooney on 30 June 2016, 20:35:32 UTC
Merge pull request #1490 from tmooney/if_at_first_you_dont_succeed_getting_a_username
Tip revision: c4912e0
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