Lines Matching defs:flavor
904 * This is done by looking at executable name. If it contains "-flavor"
910 * some/path/to/test_progs[-flavor], where -flavor part is optional.
911 * First cut out "test_progs[-flavor]" part, then extract "flavor"
914 const char *flavor = strrchr(exec_name, '/');
916 if (!flavor)
917 flavor = exec_name;
919 flavor++;
921 flavor = strrchr(flavor, '-');
922 if (!flavor)
924 flavor++;
926 fprintf(stdout, "Switching to flavor '%s' subdirectory...\n", flavor);
928 return chdir(flavor);