Commit Graph

4264 Commits

Author SHA1 Message Date
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
Sashko Stubailo
68ba975d45 Fix eqeqeq 2015-02-13 20:36:45 -08:00
Sashko Stubailo
a29f74874a Make console ok inside upgraders 2015-02-13 20:35:43 -08:00
Sashko Stubailo
d8634e0264 Code style 2015-02-13 20:27:33 -08:00
Avital Oliver
aa6e1b3909 Remove unused tag from self-test 2015-02-11 19:40:40 -08:00
Slava Kim
e14be5f80b Update the comment 2015-02-11 15:40:02 -08:00
Slava Kim
ecb10cbc9f Client-refresh self-tests now pass on Windows 2015-02-10 19:07:42 -08:00
Slava Kim
712225c77a Fix the typo of watchForChanges->ipcPipe 2015-02-10 18:35:11 -08:00
Slava Kim
c88e339b0c Merge branch 'refresh-signal' into devel 2015-02-10 18:16:51 -08:00
Slava Kim
dbfc4c9de7 Glasser's comments 2015-02-10 18:11:44 -08:00
Slava Kim
1e604a0941 Enable the client refresh on Windows 2015-02-10 16:57:44 -08:00
Slava Kim
9a95c83b2a Don't use SIGUSR2 to communicate "refresh client program" from proxy to app
process. Use an ipc message instead.
2015-02-10 15:11:38 -08:00
Avital Oliver
e866f7ca8c Tag known failing Windows self-tests
This way we can start running `meteor self-test` for regression testing,
while in parallel addressing the failures that are tagged by this commit.
2015-02-10 13:33:14 -08:00
Sashko Stubailo
9ef49c60dc Comment out empty string arg tests
These don't work on Windows because of a Node bug that is fixed in a
newer release. These tests aren't super necessary anyway, so it's
better to comment the empty string ones to let the real ones run
2015-02-10 12:28:25 -08:00
Avital Oliver
dd5dc01e81 Fix bundler-asset tests on Windows 2015-02-10 12:27:13 -08:00
Slava Kim
19a8078cd6 Finish the _getLocationFromScriptLinkToMeteorScript 2015-02-10 12:26:34 -08:00
Sashko Stubailo
b7979dde37 Add missing phantomjs script file 2015-02-10 11:56:20 -08:00
Sashko Stubailo
1bd5ea4cc5 Fix test that was broken by newline conversion
We used to convert newlines on readFile, and now we don't.
This broke the test, so I have manually inspected the output
and updated the hash.
2015-02-10 11:54:43 -08:00
Avital Oliver
08fccd4e27 Don't run tests with colon filenames on Windows
These tests are intended to guard against accidentally working with files
that have colons when on Mac/Linux, and then those packages not working on
Windows. There's nothing to test about the other direction.
2015-02-10 11:46:14 -08:00
Sashko Stubailo
23e71a764f Mark two tests as client-refresh 2015-02-10 11:42:36 -08:00
Sashko Stubailo
7f6231f01d Don't use bash to run phantomjs 2015-02-10 11:42:36 -08:00
Avital Oliver
15e87e33e8 Fix tests hard-coding METEOR as release track
Now it reads the value from catalog.DEFAULT_TRACK, which is both more
correct and necessary for the current "preview" state of Windows.

Fixed the following self-tests on Windows:
- run: update during run
- releases: springboard

Unfortunately, the autoupdate self-test still fails, maybe due to a real
bug?
2015-02-10 11:21:17 -08:00
Avital Oliver
d747157806 Add clarifying comment about Windows workaround 2015-02-09 22:36:50 -08:00
Avital Oliver
504e05326f Delete mongod.lock file when starting Meteor
When we try to kill old running versions of mongod, then we may have to
resort to killing the process without it having an opportunity to close
gracefully, so we need to also delete the lock file if we want to be able
to start mongod again.

This is made especially worse on Windows, where `process.kill` always
kills a process non-gracefully.

Should fix https://github.com/meteor/windows-preview/issues/34, and some
self-test failures.
2015-02-09 22:31:10 -08:00
Sashko Stubailo
2eaa848bcc Convert __dirname to standard path 2015-02-09 13:49:57 -08:00
David Glasser
8c48196f4d Remove unnecessary requires from mini-files.js
and add a comment making it clear that we are NOT using this file for
the concurrency-related changes, just for cross-platform normalization.
2015-02-09 11:40:44 -08:00
Sashko Stubailo
18692b672d Special cases for files.getHomeDir on win32
Fixes https://github.com/meteor/windows-preview/issues/38
2015-02-09 11:33:32 -08:00
Ben Newman
4ad860ca47 Move tools/shell/server.js to tools/server/shell-server.js.
Since this file ends up getting copied into the server bundle, along with
files like boot.js, it makes sense to keep it with those files.

Renamed tools/shell/client.js to tools/shell-client.js for symmetry.
2015-02-09 11:42:49 -05:00
Slava Kim
d07ff8e99c Convert the Windows-styled path from Assets.get* calls 2015-02-07 08:54:44 -08:00
Sashko Stubailo
ce93b8f108 Improve findMongoPids and style in run-mongo.js 2015-02-06 17:14:22 -08:00
Avital Oliver
02038e70a6 Correctly detect which package versions are installed
This was a small mistake left over from a previous commit
to change the return value of _alreadyInstalled
2015-02-06 16:50:11 -08:00
Avital Oliver
ff32eb5722 In selftest in Windows, kill child processes more
In a previous commit we did that in one but not all cases in selftest
where we try to kill child processes.
2015-02-06 15:33:24 -08:00
David Glasser
b276aa79ca Give a more specific error message on disk full
Fixes #2378.

Note that this error is detected by reading stdout, and we don't
actually want to buffer all of stdout in memory (it grows pretty fast).
2015-02-06 14:57:40 -08:00
Sashko Stubailo
6aa9142e67 Fix some test bugs related to package names/dirs 2015-02-06 14:49:23 -08:00
Avital Oliver
2f24eb418d Fix incorrect logic, while improving an error message 2015-02-06 14:28:51 -08:00
Sashko Stubailo
e6a26bded0 Wrong method call in self test. (add flow plz) 2015-02-06 13:56:01 -08:00
Sashko Stubailo
497340498f Fix missing createPackage arguments in selftest 2015-02-06 13:53:24 -08:00