Repro steps:
> gn gen out\gn_new_dir
> ninja -C out\gn_new_dir base_unittests_run
> python tools\mb\mb.py isolate out\gn_new_dir base_unittests
Must either specify a path to an existing GN build dir or pass in a -m/-b pair or a -c flag to specify the configuration
This failure occurs because mb.py looks for args.gn and gn directories are not guaranteed to have such a file.
The workaround is to run "gn args out\gn_new_dir" to create a default (empty) args.gn file, but a proper fix should handle this by looking for toolchain.ninja and then handling the missing args.gn file.
Comment 1 by bugdroid1@chromium.org
, Jun 2 2016