Skip to content

Commit

Permalink
Handle the = in --features="" properly.
Browse files Browse the repository at this point in the history
Closes #6.
  • Loading branch information
huonw committed Sep 2, 2015
1 parent d4dbc54 commit 5b44300
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ cargo clean
travis-cargo test -- --features 'remove-failing'
if [ "$TRAVIS_RUST_VERSION" = nightly ]; then
travis-cargo test -- --features 'remove-failing' | grep default_unstable_test
travis-cargo test -- --features='remove-failing' | grep default_unstable_test
TRAVIS_CARGO_NIGHTLY_FEATURE="custom-unstable" \
travis-cargo test -- --features 'remove-failing' | grep custom_unstable_test

Expand Down
3 changes: 3 additions & 0 deletions travis_cargo.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def add_features(cargo_args, version):
if cargo_args[i] == '--features':
cargo_args[i + 1] += ' ' + nightly_feature
break
elif cargo_args[i].startswith('--features='):
cargo_args[i] += ' ' + nightly_feature
break
else:
cargo_args += ['--features', nightly_feature]

Expand Down

0 comments on commit 5b44300

Please sign in to comment.