{"action":"closed","issue":{"url":"https://api.github.com/repos/basho/basho_bench/issues/178","labels_url":"https://api.github.com/repos/basho/basho_bench/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/basho/basho_bench/issues/178/comments","events_url":"https://api.github.com/repos/basho/basho_bench/issues/178/events","html_url":"https://github.com/basho/basho_bench/issues/178","id":67217075,"number":178,"title":"basho_bench tests directory seems to be ignored  [JIRA: TOOLS-100]","user":{"login":"l1x","id":20079,"avatar_url":"https://avatars.githubusercontent.com/u/20079?v=3","gravatar_id":"","url":"https://api.github.com/users/l1x","html_url":"https://github.com/l1x","followers_url":"https://api.github.com/users/l1x/followers","following_url":"https://api.github.com/users/l1x/following{/other_user}","gists_url":"https://api.github.com/users/l1x/gists{/gist_id}","starred_url":"https://api.github.com/users/l1x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l1x/subscriptions","organizations_url":"https://api.github.com/users/l1x/orgs","repos_url":"https://api.github.com/users/l1x/repos","events_url":"https://api.github.com/users/l1x/events{/privacy}","received_events_url":"https://api.github.com/users/l1x/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/basho/basho_bench/labels/JIRA:%20To%20Do","name":"JIRA: To Do","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"slfritchie","id":75320,"avatar_url":"https://avatars.githubusercontent.com/u/75320?v=3","gravatar_id":"","url":"https://api.github.com/users/slfritchie","html_url":"https://github.com/slfritchie","followers_url":"https://api.github.com/users/slfritchie/followers","following_url":"https://api.github.com/users/slfritchie/following{/other_user}","gists_url":"https://api.github.com/users/slfritchie/gists{/gist_id}","starred_url":"https://api.github.com/users/slfritchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slfritchie/subscriptions","organizations_url":"https://api.github.com/users/slfritchie/orgs","repos_url":"https://api.github.com/users/slfritchie/repos","events_url":"https://api.github.com/users/slfritchie/events{/privacy}","received_events_url":"https://api.github.com/users/slfritchie/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-04-08T20:49:45Z","updated_at":"2015-05-19T03:23:38Z","closed_at":"2015-05-19T03:23:38Z","body":"I have installed basho_bench the first time using RPM (previously i used it the source only). I was running into this issue:\r\n\r\n```bash\r\n$ basho_bench -d tests /etc/basho_bench/http.config\r\nescript: exception error: no match of right hand side value {error,eacces}\r\n  in function  basho_bench:test_dir/2 (src/basho_bench.erl, line 178)\r\n  in call from basho_bench:main/1 (src/basho_bench.erl, line 47)\r\n  in call from escript:run/2 (escript.erl, line 747)\r\n  in call from escript:start/1 (escript.erl, line 277)\r\n  in call from init:start_it/1\r\n  in call from init:start_em/1\r\n```\r\n\r\nI was wondering what is going ton and after poking around I have seen https://github.com/basho/basho_bench/issues/56.\r\n\r\nI have tried it with sudo.\r\n\r\n```bash\r\n[vagrant@localhost ~]$ sudo basho_bench -d tests /etc/basho_bench/http.config\r\n16:45:47.105 [debug] Lager installed handler {lager_file_backend,\r\n                            \"/usr/lib64/basho_bench/lib/basho_bench-0.10.0/ebin/tests/20150408_164547/error.log\"} into lager_event\r\n16:45:47.105 [debug] Lager installed handler {lager_file_backend,\r\n                            \"/usr/lib64/basho_bench/lib/basho_bench-0.10.0/ebin/tests/20150408_164547/console.log\"} into lager_event\r\n```\r\n\r\nI guess the following function prefixes the parameter that was passed in with -d with the CWD that is the \"/usr/lib64/basho_bench/lib/basho_bench-0.10.0/ebin\" in my case if the path is not a full path.\r\n \r\nhttps://github.com/basho/basho_bench/blob/0.10.0/src/basho_bench.erl#L172\r\n\r\nIt would be nice to make it explicit that the path has to be absolute and relative paths will fail if the user has no access to the CWD of the basho_bench binary.\r\n\r\nWhat do you guys think?"}}