qunit, add test for tools script and removeDuplicate function

Link to #4541
Status Job ID Name Coverage
  Test Tools
passed #824224
test_tools

00:00:10

 
  Test Quality
failed #824225
allowed to fail
code_quality

00:00:02

passed #824226
web
code_quality_custom

00:00:11

 
  Test Unit
passed #824227
web
test_browser_unit

00:00:22

 
  Deploy Review
passed #824228
web
deploy_review

00:00:12

manual #824229
web allowed to fail manual
stop_deploy_review
 
  Test Functional
passed #824232
web
chrome-browser-functional

00:04:56

passed #824230
web
ff32-browser-functional

00:04:12

passed #824231
web
ff45-browser-functional

00:04:58

passed #824233
legacy
old-chrome-browser-functional

00:04:14

 
  Test Functional External
passed #824236
web
chrome-browser-functional-external

00:01:10

passed #824234
web
ff32-browser-functional-external

00:01:24

passed #824235
web
ff45-browser-functional-external

00:01:32

passed #824237
legacy
old-chrome-browser-functional-external-chrome

00:01:21

 
Name Stage Failure
failed
code_quality Test Quality
$ function propagate_env_vars() { # collapsed multi-line command
$ docker pull --quiet "$CODE_QUALITY_IMAGE"
unknown flag: --quiet
See 'docker pull --help'.
Uploading artifacts...
Runtime platform arch=386 os=linux pid=29341 revision=58272c27 version=12.7.0
WARNING: gl-code-quality-report.json: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1