-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flow][tests] Consistent no-flowlib behavior for tests
Summary: Currently for saved state tests, we have an inconsistent `no-flowlib` setup. During the initial state saving, we run it with the default on `--no-flowlib`, but when running the test script, we don't pass the flag (because there was no way to pass it by environement variables). It caused an inconsistency between saved-state and the real state. Until now, it just happens to work, because we strip most of the libdef stuff from saved-state. But it will break in the next diff when we will add libdef stuff into saved state. This diff adds env-var support for `--no-flowlib`, so that the entire test suite with saved state can run in a consistent environment. Changelog: [internal] Reviewed By: panagosg7 Differential Revision: D69599623 fbshipit-source-id: e07b7ffe1f5955572ab529abc00de5d21b125b0a
- Loading branch information
1 parent
91754a1
commit b3f8c21
Showing
8 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/saved_state_reinit_with_lib_changes/saved_state_reinit_with_lib_changes.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
No errors! | ||
|
||
The Flow server is currently in lazy mode and is only checking 13/13 files. | ||
The Flow server is currently in lazy mode and is only checking 2/2 files. | ||
To learn more, visit flow.org/en/docs/lang/lazy-modes | ||
No errors! | ||
|
||
The Flow server is currently in lazy mode and is only checking 1/14 files. | ||
The Flow server is currently in lazy mode and is only checking 1/3 files. | ||
To learn more, visit flow.org/en/docs/lang/lazy-modes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/saved_state_update_whitespace/saved_state_update_whitespace.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
No errors! | ||
|
||
The Flow server is currently in lazy mode and is only checking 14/14 files. | ||
The Flow server is currently in lazy mode and is only checking 3/3 files. | ||
To learn more, visit flow.org/en/docs/lang/lazy-modes |