main: Exit with status codes, allows running directly from bisect

Tue, 22 Sep 2015 22:36:25 +0200

author
Kim Alvefur <zash@zash.se>
date
Tue, 22 Sep 2015 22:36:25 +0200
changeset 35
90219526e942
parent 34
946c7d13faac
child 36
b1d7a274d250

main: Exit with status codes, allows running directly from bisect

main.lua file | annotate | diff | comparison | revisions
--- a/main.lua	Tue Sep 22 12:16:26 2015 +0200
+++ b/main.lua	Tue Sep 22 22:36:25 2015 +0200
@@ -82,8 +82,11 @@
 
 if not ok then
 	print("TEST ERROR:", result);
+	os.exit(2);
 elseif not result then
 	print("TEST FAILED", err);
+	os.exit(1);
 else
 	print("TEST PASSED");
+	os.exit(0);
 end

mercurial