Ignore command-cache-dir on older 8.1 branch

This is used on more recent branches to cache art invocations

Bug: b/286019067
Change-Id: I6687023ba97042818a02a7c4bbb6b242791a5d9d
diff --git a/tools/test.py b/tools/test.py
index 5586802..61e1aa2 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -111,6 +111,9 @@
       help='Use a custom directory for the test artifacts instead of a'
           ' temporary (which is automatically removed after the test).'
           ' Note that the directory will not be cleared before the test.')
+  result.add_option('--command-cache-dir', '--command_cache_dir',
+      help='Ignored below 8.2',
+      default='')
   result.add_option('--java-home', '--java_home',
       help='Use a custom java version to run tests.')
   result.add_option('--java-max-memory-size', '--java_max_memory_size',