Add arg to test function to be able to prefix test output directory
This makes it much easier to find test output from a specific test
This commit is contained in:
parent
b91fa19fe7
commit
42b475069b
@ -37,13 +37,14 @@ test_search_path ()
|
||||
}
|
||||
|
||||
std::string
|
||||
new_test_output_dir ()
|
||||
new_test_output_dir (std::string prefix)
|
||||
{
|
||||
std::string tmp_dir = Glib::build_filename (g_get_tmp_dir(), "ardour_test");
|
||||
std::string dir_name;
|
||||
std::string new_test_dir;
|
||||
do {
|
||||
ostringstream oss;
|
||||
oss << prefix;
|
||||
oss << g_random_int ();
|
||||
dir_name = oss.str();
|
||||
new_test_dir = Glib::build_filename (tmp_dir, dir_name);
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
PBD::SearchPath test_search_path ();
|
||||
|
||||
std::string new_test_output_dir ();
|
||||
std::string new_test_output_dir (std::string prefix = "");
|
||||
|
||||
int get_test_sample_rate ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user