Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove test references to old CI #5615

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

bk2204
Copy link
Member

@bk2204 bk2204 commented Jan 11, 2024

We no longer use Appveyor or TravisCI, so let's remove references to them in the testsuite.

This test has been broken for a while, but we hadn't noticed because of
an unexpected way of skipping the test for TravisCI, which we no longer
use.

In TravisCI, the `TRAVIS` environment variable is set to 1.  However,
in other environments, it is usually not set.  As a consequence, it
expands to the empty string.

The `if` statement in sh is not the `if` statement in C, and thus it
does not take a boolean value, and "1" would not be a valid value here.
The empty string is a valid value, though, and it is interpreted as a
no-op command, much like `:` or `true`, which are the customary ways to
write this.  Because this command always succeeds, we always skip this
branch, and the body of the test is not executed.

After removing this, our test fails because `assert_clean_status` is not
run in a Git repository.  We clearly wanted to run it in `$newclonedir`,
so let's do that.  In addition, the text "Git LFS:" is no longer
printed, so don't look for it.  With those changes, this test now
passes.
We no longer use Appveyor or TravisCI, so let's remove references to
them in the testsuite.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant