@@ -3271,18 +3271,18 @@ def check(text):
32713271 self.fail('output contains more then one empty line in row')
32723272
32733273 # relative path must be within/below the current dir
3274- stderr = self.expect_fail([FILE_PACKAGER, 'test.data', '--preload', '../data1.txt'])
3274+ stderr = self.expect_fail([FILE_PACKAGER, 'test.data', '--quiet', '-- preload', '../data1.txt'])
32753275 self.assertContained('which is not contained within the current directory', stderr)
32763276
32773277 # relative path that ends up under us is cool
3278- proc = self.run_process([FILE_PACKAGER, 'test.data', '--preload', '../subdir/data2.txt'], stderr=PIPE, stdout=PIPE)
3279- self.assertNotContained('which is not contained within the current directory', proc.stderr)
3278+ proc = self.run_process([FILE_PACKAGER, 'test.data', '--quiet', '-- preload', '../subdir/data2.txt'], stderr=PIPE, stdout=PIPE)
3279+ self.assertEqual( proc.stderr, '' )
32803280 check(proc.stdout)
32813281
32823282 # direct path leads to the same code being generated - relative path does not make us do anything different
3283- proc2 = self.run_process([FILE_PACKAGER, 'test.data', '--preload', 'data2.txt'], stderr=PIPE, stdout=PIPE)
3283+ proc2 = self.run_process([FILE_PACKAGER, 'test.data', '--quiet', '-- preload', 'data2.txt'], stderr=PIPE, stdout=PIPE)
32843284 check(proc2.stdout)
3285- self.assertNotContained('below the current directory', proc2.stderr)
3285+ self.assertEqual( proc2.stderr, '' )
32863286
32873287 def clean(txt):
32883288 lines = txt.splitlines()
@@ -3294,15 +3294,15 @@ def clean(txt):
32943294 # verify '--separate-metadata' option produces separate metadata file
32953295 os.chdir('..')
32963296
3297- self.run_process([FILE_PACKAGER, 'test.data', '--preload', 'data1.txt', '--preload', 'subdir/data2.txt', '--js-output=immutable.js', '--separate-metadata', '--use-preload-cache'])
3297+ self.run_process([FILE_PACKAGER, 'test.data', '--quiet', '-- preload', 'data1.txt', '--preload', 'subdir/data2.txt', '--js-output=immutable.js', '--separate-metadata', '--use-preload-cache'])
32983298 self.assertExists('immutable.js.metadata')
32993299 # verify js output JS file is not touched when the metadata is separated
33003300 orig_timestamp = os.path.getmtime('immutable.js')
33013301 orig_content = read_file('immutable.js')
33023302 # ensure some time passes before running the packager again so that if it does touch the
33033303 # js file it will end up with the different timestamp.
33043304 time.sleep(1.0)
3305- self.run_process([FILE_PACKAGER, 'test.data', '--preload', 'data1.txt', '--preload', 'subdir/data2.txt', '--js-output=immutable.js', '--separate-metadata', '--use-preload-cache'])
3305+ self.run_process([FILE_PACKAGER, 'test.data', '--quiet', '-- preload', 'data1.txt', '--preload', 'subdir/data2.txt', '--js-output=immutable.js', '--separate-metadata', '--use-preload-cache'])
33063306 # assert both file content and timestamp are the same as reference copy
33073307 self.assertTextDataIdentical(orig_content, read_file('immutable.js'))
33083308 self.assertEqual(orig_timestamp, os.path.getmtime('immutable.js'))
0 commit comments