From 9078fe4e6bb9d74e8fcd6020c1364526b41f35e5 Mon Sep 17 00:00:00 2001 From: Sean Allred Date: Sat, 1 Nov 2014 14:07:08 -0400 Subject: Return -no-value if it cannot find sample Allows build to continue if it cannot find the file. This is for reading in sample data. I'm not really sure why the local build cannot find the file, but I will figure it out later today. --- test/tests.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/tests.el b/test/tests.el index d8a653b..59c3413 100644 --- a/test/tests.el +++ b/test/tests.el @@ -11,7 +11,9 @@ (concat "data-samples/" (when directory (concat directory "/")) method ".el")) - (eval (read (buffer-string))))) + (eval (read (if (string-equal "" (buffer-string)) + "'no-value" + (buffer-string)))))) (setq stack-test-data-questions (stack-test-sample-data "questions") -- cgit v1.2.3