diff options
author | Sean Allred <code@seanallred.com> | 2014-11-01 14:07:08 -0400 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-11-01 14:07:08 -0400 |
commit | 9078fe4e6bb9d74e8fcd6020c1364526b41f35e5 (patch) | |
tree | 703bc84c18d9c3a929c6f33583df74e379bcac69 | |
parent | 8831556b94b9d2f5f80b14103947add2b562f5f9 (diff) |
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.
-rw-r--r-- | test/tests.el | 4 |
1 files changed, 3 insertions, 1 deletions
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") |