swh:1:snp:5789d5563ae0ff1fac9d4620526a6e02863df326
Raw File
Tip revision: f80cbaea0374a4e66b4eb987ea84af381071e85d authored by Thomas B. Mooney on 04 December 2018, 22:14:37 UTC
Merge pull request #1895 from tmooney/better_cromwell_output_staging
Tip revision: f80cbae
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