Commit Graph

4300 Commits

Author SHA1 Message Date
David Glasser
adc6d9969c Revert "Add some helpers for testing wrapped text"
This reverts commit 4a6dd52bca.

This made some tests flaky because notSpaceSensitive sometimes (but not
always!) ate the newline after the regexp.

We should just disable word wrapping in processes run by self-test
instead.
2015-03-09 22:30:44 -07:00
David Glasser
0a1dcee43c Show pattern for junk-before too 2015-03-09 22:13:07 -07:00
David Glasser
82e02c4cc4 test: Prevent overlapping meteor calls
They crashed sometimes, because meteor does that.
2015-03-09 18:51:40 -07:00
ekatek
50534fa252 fixing a test
The test is fine, but we were publishing a different version than we checked for.
(That is, we published 1.1.0, and were surprised when 1.0.1 did not show up).
Fixed.
2015-03-09 16:18:45 -07:00
David Glasser
b21aac4c72 fix spacing in deferred reg message 2015-03-09 15:39:22 -07:00
Sashko Stubailo
2288d76db1 Rewrap comment 2015-03-05 21:56:40 -08:00
sashko
4a6dd52bca Add some helpers for testing wrapped text 2015-03-05 21:07:14 -08:00
sashko
e6dd488842 Make addendum not sensitive to line breaks 2015-03-05 20:24:44 -08:00
Sashko Stubailo
71b914a296 Add flushing buffers on process.exit to meteor package 2015-03-05 20:04:58 -08:00
sashko
59a6bef4aa Revert "Fix constraint solver test by removing process.exit"
This reverts commit 18e304b28c.
2015-03-05 19:58:51 -08:00
sashko
c914dc94cf Fix command line test by adding small wait 2015-03-05 19:47:11 -08:00
sashko
18e304b28c Fix constraint solver test by removing process.exit 2015-03-05 19:46:33 -08:00
sashko
627f3be4f8 Fix autoupdate test on Windows 2015-03-05 19:21:48 -08:00
Sashko Stubailo
5c5af8bdff Uncomment empty string argument tests
Add an if statement so that they don't fail on Windows
2015-03-05 18:45:27 -08:00
sashko
3b56565373 Mark cordova tests with appropriate tag 2015-03-05 18:40:31 -08:00
Slava Kim
6a52dd82e2 Uncomment and fix the releases tests on Windows 2015-03-05 17:54:59 -08:00
Slava Kim
7d39f9e796 Uncomment and fix the "Default release track is METEOR@" test for Windows 2015-03-05 17:44:33 -08:00
Slava Kim
759510a584 Bump the tests timeout to fix tests on Windows
Yeah, they are slower on Windows :(
2015-03-05 17:30:20 -08:00
David Glasser
63a0076305 mongo: provide direct access to node driver db
Specifically, Mongo.Collection objects on the server now have
rawCollection and rawDatabase methods.

You can use MongoInternals.NpmModules.mongodb.version to tell what
version of the mongodb npm module is the backend for HTTP.call.  This
version may change incompatibly from version to version of Meteor; use
at your own risk.  (For example, we expect to upgrade from the 1.4.x
series to the 2.x series in the not-too-distant future.)

Fixes #3640.
2015-03-05 17:12:37 -08:00
David Glasser
2b466a9015 Fix yet another self-test broken by d4d349ca96
And make sure that failures are thrown within the actual test itself,
not within a timer, so that failure doesn't crash the whole self-test
process.
2015-03-05 16:45:21 -08:00
sashko
905092d4b5 Improve message 2015-03-05 15:55:44 -08:00
Slava Kim
9187dc2129 Fix one npm self-test on Windows 2015-03-05 15:54:37 -08:00
Sashko Stubailo
98a21446ca Add special directions for killing the server on Windows 2015-03-05 15:49:05 -08:00
David Glasser
63f89e5602 Tell stats server which packages are local
Requires an annoying level of hackery to get the fake-warehouse tests to
pass.

See meteor/package-stats#1.
2015-03-05 13:49:18 -08:00
Sashko Stubailo
85505e1082 Improve messages around missing Windows release 2015-03-04 17:38:05 -08:00
Sashko Stubailo
dac1f96825 Remove extra unneeded code in new admin command 2015-03-04 11:40:51 -08:00
Sashko Stubailo
b73aca8acc Made a useful new command for mangling version numbers 2015-03-04 11:32:57 -08:00
Sashko Stubailo
aa54ba1d13 Tree hash is different on windows and mac
This is very hard to fix for some reason
2015-03-03 22:01:14 -08:00
David Glasser
91a321fa4b Further fixes to self-tests broken by d4d349ca96 2015-03-03 21:35:23 -08:00
David Glasser
484372d3f5 Fix self-test broken by d4d349ca96 2015-03-03 21:09:18 -08:00
David Glasser
9c210f8bcb Fix crash in publish
Specifically, a "no pluginProviderPackageMap on isopack?" error would be
thrown when running publish in the following circumstances:

- You are inside an app (so it uses the app's .meteor/local/isopacks as
  an IsopackCache instead of a temporary directory)
- Your package does not need to be rebuilt (so it gets read in "up to
  date" mode by the IsopackCache)
- Your app has at least one cordova platform (so that
  includeCordovaUnibuild was true on the cached isopack; it is always
  true when building for publish)

In this case, we read the Isopack from disk but didn't keep the
pluginProviderPackageMap that we read from its isopack-buildinfo.json,
which later lead to a crash.

Fixes #3676.
2015-03-03 18:54:53 -08:00
David Glasser
add32127fa Actually use builtBy! (Regression in 1.0.2.) 2015-03-03 18:20:37 -08:00
Slava Kim
c47f0d8a67 Fix the check for emacs-eshell terminal 2015-03-03 15:49:38 -08:00
Sashko Stubailo
241565c40b Remove extra option to rimraf
This option didn't even do anything, so we should remove the code.
2015-03-03 15:29:13 -08:00
Ben Newman
af50b4cc5b Define a class called PackageAPI and put it in its own file.
Summary:
The methods of the ad-hoc `api` object needed access to very few variables
from the surrounding lexical environment, and those few variables
(`sources`, `exports`, `uses`, `implies`) are better regarded as member
variables of the `PackageAPI` class.

Test Plan: `meteor test-packages`

Reviewers: Slava, dgreensp, glasser

Reviewed By: glasser

Differential Revision: https://phabricator.meteor.io/D30
2015-03-03 14:27:04 -05:00
Slava Kim
47f463d6b6 A slightly better error message when tasklist.exe wasn't found 2015-03-03 11:06:13 -08:00
Slava Kim
89e0373259 Fix progressbars on Windows 2015-03-02 16:34:04 -08:00
Slava Kim
eeeb3d9f3a Always get the width of the terminal through the width method 2015-03-02 16:27:15 -08:00
Slava Kim
cbff527131 Add a spinner option to the admin progressbar-test command 2015-03-02 16:01:31 -08:00
Slava Kim
4af325b222 Add a dummy progress-bar test command for testing 2015-03-02 15:12:21 -08:00
Avital Oliver
4265cf8c44 Simplify Windows Meteor install path detection 2015-02-27 16:29:24 -08:00
Slava Kim
ec9afe2c64 Don't set quotes in METEOR_INSTALLATION variable 2015-02-25 16:35:19 -08:00
Slava Kim
bf63b6dbf8 Allow meteor.bat script to set its own installation location 2015-02-25 16:15:29 -08:00
Josh Owens
cc93674277 Set testing to automatically be run once. 2015-02-24 21:50:05 -08:00
David Glasser
d4d349ca96 Don't overly escape Meteor.settings.public
Fixes #3730.

Testing Done:
Manual testing based on the report in #3730. Also confirmed that `</script>` is not a problem.

I would have added a test-packages test but there's no easy way to override Meteor.settings in test-packages.

Bugs closed: 3730

Reviewed at https://rbcommons.com/s/meteor/r/1/
2015-02-17 18:01:01 -08:00
David Glasser
94683896b7 Don't ignore nonexistent settings file in run
Refactorings in 1.0.2 accidentally started ignoring errors related to
--settings.  Fixes #3757.
2015-02-17 16:36:39 -08:00
Sashko Stubailo
619642b556 Fix reused variable 2015-02-17 09:22:48 -08:00
David Glasser
5d17598584 Update pathwatcher, which took our PR
Our PR landed in 4.1.0, so we no longer need a fork.

Hopefully, the runas-related bug which causes dev bundle builds to
sometimes fail (which is why we moved the install to its own step) is
fixed with the newer version of runas used by pathwatcher now.

Note that we were previous using a fork with an early version of our PR,
which put the numeric errno on 'code'. The accepted version of the PR
puts the numeric errno on 'errno' (and in Node 0.12, puts a string on
'code').
2015-02-16 14:34:54 -08:00
Slava Kim
37f3230591 Merge branch 'upgrade-cordova' into devel
This merge applies changes to the dev-bundle script, but the new dev-bundle is
yet to be built.
2015-02-16 14:07:00 -08:00
Sashko Stubailo
eb4845439a Remove unused imports 2015-02-13 20:39:08 -08:00