11409 Commits

Author SHA1 Message Date
William Woodruff
d07b9ed7f2
Replace Utils::JSON with corelib JSON calls. 2016-11-20 20:06:25 -05:00
William Woodruff
54d18cee17
compat: deprecate Utils::JSON in favor of corelib JSON. 2016-11-20 15:02:47 -05:00
Markus Reiter
7fbab8be9c Merge pull request #1538 from reitermarkus/remove-kexts
Remove kernel extensions specified in `uninstall :kext`.
2016-11-20 00:33:53 +01:00
Markus Reiter
1834457272 Remove kernel extensions specified in uninstall :kext. 2016-11-19 01:53:26 +01:00
Mike McQuaid
7853406fb4 Merge pull request #1515 from alyssais/formula_cache
Fix flaky tests.
2016-11-18 15:37:49 +00:00
Mike McQuaid
c3022ad2d5 Merge pull request #1536 from MikeMcQuaid/testbottest-tarballs
testbottest: don't use TEST_FIXTURE_DIR.
2016-11-18 14:37:04 +00:00
Mike McQuaid
e8d5040141 testbottest: don't use TEST_FIXTURE_DIR.
This isn't defined for formulae.
2016-11-18 14:08:40 +00:00
Mike McQuaid
5e073f1f40 Merge pull request #1528 from MikeMcQuaid/audit-devel-revision
audit: don't check devel version_scheme/revision.
2016-11-18 13:53:22 +00:00
Mike McQuaid
0e2218807a Merge pull request #1529 from MikeMcQuaid/uninstall-ignore-deprecations
uninstall: ignore deprecations when uninstalling.
2016-11-18 13:06:42 +00:00
Mike McQuaid
f4810e4eb1 Merge pull request #1530 from MikeMcQuaid/audit-homebrew-prefix-test-path
audit: check for HOMEBREW_PREFIX test path usage.
2016-11-18 12:37:46 +00:00
Mike McQuaid
39a0fec95d uninstall: ignore deprecations when uninstalling.
Handle `MethodDeprecatedError` because we want people to be able to
uninstall regardless of the content of their formula.
2016-11-18 09:34:58 +00:00
Mike McQuaid
e4fb108079 audit: check for HOMEBREW_PREFIX test path usage.
This is also not allowed.

As seen in https://github.com/Homebrew/homebrew-core/pull/6996.
2016-11-18 09:02:39 +00:00
Mike McQuaid
d9ee2d75c5 Merge pull request #1512 from zmwangx/bump-formula-pr-user-supplied-message
bump-formula-pr: add --message option
2016-11-18 08:30:22 +00:00
Mike McQuaid
5bbc610d2c Merge pull request #1534 from woodruffw/use-core-json
utils/json: Replace OkJson with Ruby's core JSON.
2016-11-18 08:10:28 +00:00
Mike McQuaid
1f956a6b75 Merge pull request #1533 from jawshooah/fix-tests
tests: ignore test files in test/vendor/bundle
2016-11-18 08:08:47 +00:00
William Woodruff
4278ec38e4
utils/json: Replace OkJson with Ruby's core JSON.
Removes OkJson from vendor/, as Ruby has included its own JSON
parser in corelib since 1.9.x and Homebrew is now guaranteed to be
running on 2.x+.
2016-11-17 23:16:21 -05:00
Josh Hagins
0a7307de64 tests: ignore test files in test/vendor/bundle 2016-11-17 19:21:05 -05:00
Josh Hagins
d536070e0a Merge pull request #1531 from zmwangx/fix-test-fixtures-path
formula: update test_fixtures path
2016-11-17 18:20:43 -05:00
Zhiming Wang
00532a3e3a
formula: update test_fixtures path
Fix regression caused by #1364.
2016-11-17 15:54:51 -05:00
Zhiming Wang
67999d75f5
bump-formula-pr: add --message option
For user-supplied PR message.
2016-11-17 15:29:33 -05:00
Mike McQuaid
b7f0edd1fd audit: don't check devel version_scheme/revision.
These are formulae-wide so doesn't make sense to iterate through these
for specs and get weird results.

As seem in https://github.com/Homebrew/homebrew-core/pull/6952.
2016-11-17 17:13:52 +00:00
Mike McQuaid
649c7ab48a Merge pull request #1520 from vladshablinsky/list_follow_aliases
cmd/list: follow aliases
2016-11-17 15:58:25 +00:00
Alyssa Ross
3555206a7f formula: make cache clearing methods, *ahem*, clearer 2016-11-17 14:36:49 +00:00
Alyssa Ross
5baf16f50e Revert "uninstall: skip some flaky tests for now."
This reverts commit 50c964df2ebda125366a94f0e8701eaeb0d98fa7.
2016-11-17 14:26:00 +00:00
Alyssa Ross
8bfc205a87 tab: clear Formula.installed cache when created.
This was causing the flaky tests that #1508 started skipping.

This is the second time that `Formula.installed`'s cache has bitten
me with intermittent test failures, and I'd like it to be the last,
so I've made it so the cache is cleared automatically when a tab is
created. This _should_ mean that the cache is cleared any time it
needs to be, with the exception of when a Keg is created artificially
with no tab. I don't think there's anything I can do to automatically
handle that use-case, though.
2016-11-17 14:26:00 +00:00
Markus Reiter
e6933b90dc Merge pull request #1364 from reitermarkus/reorder-tests
Reorder and rename test files.
2016-11-17 03:36:21 +01:00
Markus Reiter
7457af2b23 Move test files back directly to test/. 2016-11-16 23:52:38 +01:00
Markus Reiter
9dc1f8f3cd Require integration_command_test_case in testing_env. 2016-11-16 23:52:38 +01:00
Markus Reiter
9d82acbf30 Separate Homebrew::TestCase from testing_env. 2016-11-16 23:52:38 +01:00
Markus Reiter
7b9fd538fa Move integration_mocks to test/support/helper. 2016-11-16 23:52:38 +01:00
Markus Reiter
4db1317f38 Move all remaining fixtures to test/support/fixtures. 2016-11-16 23:52:38 +01:00
Markus Reiter
4efdbbde06 Rename fs_leak_log to fs_leak.log and move to tmp. 2016-11-16 23:52:37 +01:00
Markus Reiter
e3be9c068b Update .rubocop_todo.yml. 2016-11-16 23:52:37 +01:00
Markus Reiter
6b6b27126d Reorder and rename test files. 2016-11-16 23:52:37 +01:00
Mike McQuaid
edf042ee97 Merge pull request #1522 from MikeMcQuaid/audit-one-previous-commit
audit: only check previous formula version.
1.1.1
2016-11-16 10:25:11 +00:00
Mike McQuaid
768a08ae63 Merge pull request #1517 from MikeMcQuaid/audit-stable-version-empty
audit: check that there are any stable revisions.
2016-11-16 09:41:44 +00:00
Mike McQuaid
31caa8ef93 audit: only check previous formula version.
For calculating the stable/devel versions this should be sufficient as
it's looking at `origin/master` so for a e.g. unmerged pull request this
will stop complaining about mistakes outside the pull request itself.

This will silence all warnings for historic version mistakes (i.e.
before these audit checks were all enabled) which is normally a bad
thing but as this case would rely on modifying history to complete is a
good one.
2016-11-16 09:03:20 +00:00
Mike McQuaid
27ea94adb8 audit: check that there are any stable revisions.
Fixes the exception if `revision_map[formula.stable.version]` is `nil`.
2016-11-16 08:59:52 +00:00
Uladzislau Shablinski
715caea79b cmd/list: follow aliases
Closes #1514
2016-11-16 02:08:38 +03:00
Josh Hagins
34f08a9512 Merge pull request #1513 from Homebrew/jawshooah-patch-1
hbc/cmd/style: bump rubocop-cask to 0.10.6
2016-11-15 13:08:24 -05:00
Josh Hagins
c20d50fc7a hbc/cmd/style: bump rubocop-cask to 0.10.6 2016-11-15 11:57:10 -05:00
Mike McQuaid
f4f90cad75 Merge pull request #1510 from MikeMcQuaid/uninstall-no-nils
uninstall: remove nil requireds/dependents
2016-11-15 15:29:15 +00:00
Mike McQuaid
a92da09609 Merge pull request #1509 from MikeMcQuaid/development-tools-no-nil-versions
development_tools: don't create Versions from `nil`
2016-11-15 15:29:03 +00:00
Mike McQuaid
673c4c78bd Merge pull request #1508 from MikeMcQuaid/uninstall-skip-flaky-tests
uninstall: skip some flaky tests for now.
2016-11-15 14:50:43 +00:00
Mike McQuaid
727263e906 development_tools: don't create Versions from nil
This cause issues when e.g. using `debrew.rb` on a failing `system`
command in a formula.
2016-11-15 14:43:56 +00:00
Mike McQuaid
d7e72899e6 uninstall: remove nil requireds/dependents
These shouldn’t get here in the first place so this is a bit of a hack
pending a better fix.
2016-11-15 14:34:49 +00:00
Mike McQuaid
50c964df2e uninstall: skip some flaky tests for now.
These will be fixed properly later but this will avoid causing
unnecessary CI failures.
2016-11-15 14:32:13 +00:00
Mike McQuaid
c1af8fba55 Merge pull request #1506 from MikeMcQuaid/audit-fix-version-not-decrease-again
audit: fix "version should not decrease" (again).
2016-11-15 12:36:06 +00:00
Mike McQuaid
5e0b3d24e5 audit: fix "version should not decrease" (again).
- output the max version and current version to make the message more
  obvious.
- Don't compare the development spec version to the formula version and
  then complain the formula version is lower (it should always be!)
2016-11-15 09:02:50 +00:00
Mike McQuaid
484e3e0769 Merge pull request #1498 from alyssais/uninstall_developer_warning
Warn developers when uninstalling a dependency
2016-11-15 08:15:42 +00:00