tools/configurator: convert flags to text in 'struct test'