test/test_cli.rb in tracksperanto-2.8.1 vs test/test_cli.rb in tracksperanto-2.8.2

- old
+ new

@@ -42,20 +42,10 @@ ) assert_same_set fs, Dir.entries(TEMP_DIR) end - def test_cli_with_error_on_nonsequentials_matchmover_to_pftrack5 - FileUtils.cp(File.dirname(__FILE__) + "/import/samples/match_mover/NonSequentialMatchmoverPoints.rz2", TEMP_DIR + "/mm.rz2") - status, o, e = cli(TEMP_DIR + "/mm.rz2 --only pftrack5") - assert_equal "", e - assert_equal 0, status, "Should exit with a normal status" - - fs = %w(. .. flm.stabilizer mm.rz2 mm_pftrack_v5.2dt ) - assert_same_set fs, Dir.entries(TEMP_DIR) - end - def test_cli_with_nonexisting_only_exporter_prints_proper_error_message status, o, e = cli("--only microsoftfuckingword " + TEMP_DIR + "/flm.stabilizer") assert_equal 2, status, "Should exit with abnormal state" assert e.include?("Unknown exporter \"microsoftfuckingword\"") assert e.include?("The following export modules are available") @@ -93,10 +83,10 @@ def test_cli_trim FileUtils.cp(File.dirname(__FILE__) + "/import/samples/flame_stabilizer/fromCombustion_fromMidClip_wSnap.stabilizer", TEMP_DIR + "/flm.stabilizer") results = cli("--slip -8000 --trim --only flamestabilizer #{TEMP_DIR}/flm.stabilizer") assert_not_equal 0, results[0] # status - assert_match /There were no trackers exported /, results[-1] # STDERR + assert_match /There were no trackers exported/, results[-1] # STDERR end # We use this instead of assert_equals for arrays since different filesystems # return files in different order def assert_same_set(expected_enum, enum, message = "Should be the same set") \ No newline at end of file