28 lines
709 B
Perl
28 lines
709 B
Perl
|
|
Demonstrate running "dune promote" concurrently with a passive rpc server
|
||
|
|
|
||
|
|
$ . ./helpers.sh
|
||
|
|
|
||
|
|
$ echo '(lang dune 3.20)' > dune-project
|
||
|
|
$ echo " $ echo hello" > my_test.t
|
||
|
|
|
||
|
|
$ start_dune
|
||
|
|
|
||
|
|
The test expectedly fails (see errors at the end of this file)
|
||
|
|
$ build "(alias my_test)"
|
||
|
|
Failure
|
||
|
|
|
||
|
|
Promotion happens on the running RPC server.
|
||
|
|
$ dune promote
|
||
|
|
Success
|
||
|
|
|
||
|
|
$ build "(alias my_test)"
|
||
|
|
Success
|
||
|
|
|
||
|
|
$ stop_dune
|
||
|
|
File "my_test.t", line 1, characters 0-0:
|
||
|
|
Error: Files _build/default/my_test.t and _build/default/my_test.t.corrected
|
||
|
|
differ.
|
||
|
|
Had 1 error, waiting for filesystem changes...
|
||
|
|
Promoting _build/default/my_test.t.corrected to my_test.t.
|
||
|
|
Success, waiting for filesystem changes...
|