Author: sandervanderburg
Date: Thu Dec 23 18:47:36 2010
New Revision: 25268
URL: https://svn.nixos.org/websvn/nix/?rev=25268&sc=1

Log:
Add curl instruction which invalidates the test in case of a failure

Modified:
   disnix/examples/viewvc/trunk/release.nix

Modified: disnix/examples/viewvc/trunk/release.nix
==============================================================================
--- disnix/examples/viewvc/trunk/release.nix    Thu Dec 23 18:08:58 2010        
(r25267)
+++ disnix/examples/viewvc/trunk/release.nix    Thu Dec 23 18:47:36 2010        
(r25268)
@@ -43,9 +43,11 @@
        networkFile = "DistributedDeployment/network.nix";
        testScript =
          ''
+           $test3->mustSucceed("sleep 30; curl --fail 
http://test1/viewvc/bin/cgi/viewvc.cgi/aefs/trunk";);
+           
            # Start Firefox and take a screenshot
            
-           $test3->mustSucceed("sleep 60; firefox 
http://test1/viewvc/bin/cgi/viewvc.cgi/aefs/trunk &");
+           $test3->mustSucceed("firefox 
http://test1/viewvc/bin/cgi/viewvc.cgi/aefs/trunk &");
            $test3->waitForWindow(qr/Namoroka/);
            $test3->mustSucceed("sleep 30");  
            $test3->screenshot("screen");
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to