If a ctrl-c interrupt occurs, the test runner will stop and
return the total number of failed.
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Commit migrated from https://github.com/dotnet/corefx/commit/
f3049c6062d09a40577ef17b2d6ba1c047e7207d
exit 1
}
+# Handle Ctrl-C.
+function handle_ctrl_c {
+ local errorSource='handle_ctrl_c'
+
+ echo ""
+ echo "Cancelling test execution."
+ exit $TestsFailed
+}
+
+# Register the Ctrl-C handler
+trap handle_ctrl_c INT
+
ProjectRoot="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Location parameters
# OS/ConfigurationGroup defaults